From: Mike D. Lowis Date: Wed, 14 Nov 2012 14:15:24 +0000 (-0500) Subject: Updated c.vim with gentex custom types X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=da4812cd5e08770a82884f10f838c9631544382d;p=archive%2Fvim_config.git Updated c.vim with gentex custom types --- diff --git a/filetype.vim b/filetype.vim index a36a431..db4fca6 100644 --- a/filetype.vim +++ b/filetype.vim @@ -3,7 +3,8 @@ if exists("did_load_filetypes") endif augroup filetypedetect - au! BufRead,BufNewFile *.mot setfiletype srec - au! BufRead,BufNewFile *.pslt setfiletype pslt - au! BufRead,BufNewFile *.rkt setfiletype scheme + au! BufRead,BufNewFile *.mot setfiletype srec + au! BufRead,BufNewFile *.pslt setfiletype pslt + au! BufRead,BufNewFile *.rkt setfiletype scheme + au! BufRead,BufNewFile *.md setfiletype markdown augroup END diff --git a/syntax/c.vim b/syntax/c.vim index e57167b..f7d528a 100644 --- a/syntax/c.vim +++ b/syntax/c.vim @@ -14,7 +14,7 @@ syn keyword cLabel case default syn keyword cConditional if else switch syn keyword cRepeat while for do -syn keyword cTodo contained TODO FIXME XXX +syn keyword cTodo contained TODO FIXME XXX NOTE DELETE " It's easy to accidentally add a space after a backslash that was intended " for line continuation. Some compilers allow it, which makes it @@ -170,6 +170,7 @@ if exists("c_gnu") endif syn keyword cType int long short char void syn keyword cType signed unsigned float double +syn keyword cType U8 U16 U32 U64 S8 S16 S32 S64 C8 F32 F64 BOOL if !exists("c_no_ansi") || exists("c_ansi_typedefs") syn keyword cType size_t ssize_t off_t wchar_t ptrdiff_t sig_atomic_t fpos_t syn keyword cType clock_t time_t va_list jmp_buf FILE DIR div_t ldiv_t @@ -266,7 +267,7 @@ if !exists("c_no_ansi") || exists("c_ansi_constants") || exists("c_gnu") syn keyword cConstant M_1_PI M_2_PI M_2_SQRTPI M_SQRT2 M_SQRT1_2 endif if !exists("c_no_c99") " ISO C99 - syn keyword cConstant true false + syn keyword cConstant true false TRUE FALSE endif " Accept %: for # (C99)