Bram,

Following the discussion in vim mailing list, and now that
more C compilers support c99 features, what do you think about
adding two explicit filetypes, c89 and c99, to allow vim scripts
to clearly distinguish between the two distinct flavors of C:

------------------- file syntax/c89.vim ----------------------
" Vim syntax file
" Language:     C99 flavor of C (as opposed to C89)

let c_no_c99
runtime c.vim
-------------------- file syntax/c99.vim -----------------------
" Vim syntax file
" Language:     C89 flavour of C (as opposed to C99)

unlet c_no_c99
runtime c.vim
------------------------------------------------------------------------

I am unsure about couple of points:

1) shall variable c_no_c99 be not global but buffer-local ?
   What c.vim checks is global var, is not it ?
2) is addition to filetypes.vim needed ?

Yakov

Reply via email to