]> git.mdlowis.com Git - archive/vim_config.git/commitdiff
Updated c.vim with gentex custom types
authorMike D. Lowis <mike@mdlowis.com>
Wed, 14 Nov 2012 14:15:24 +0000 (09:15 -0500)
committerMike D. Lowis <mike@mdlowis.com>
Wed, 14 Nov 2012 14:15:24 +0000 (09:15 -0500)
filetype.vim
syntax/c.vim

index a36a4310f20525c89f6598c8daeec7bab01828eb..db4fca6511ed662d73bbe3da0db5c3dd0aea9251 100644 (file)
@@ -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
index e57167b8e5ee6fceefba1bec04f8e125729acb99..f7d528ac41228096c2519c6ab0c9551c6e52148f 100644 (file)
@@ -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)