Convert llvm.cs.uiuc.edu -> llvm.org
[oota-llvm.git] / utils / vim / tablegen.vim
index f93fbed32e79cdaa4be0f99667ffed978f04c6c8..1514e2e0e82b165207febaf52d3f5ff648c6dc7e 100644 (file)
@@ -1,6 +1,6 @@
 " Vim syntax file
 " Language:   TableGen
-" Maintainer: The LLVM team, http://llvm.cs.uiuc.edu/
+" Maintainer: The LLVM team, http://llvm.org/
 " Updated:    2003-08-11
 
 if version < 600
@@ -11,11 +11,14 @@ endif
 
 syn case match
 
-syn keyword tgKeyword   def let in code dag
-syn keyword tgType      class int string list bit bits
+syn keyword tgKeyword   def let in code dag field include
+syn keyword tgType      class int string list bit bits 
+" FIXME: this does not handle hex (0x...) or binary (0b...) constants
 syn match   tgNumber    /\<\d\+\>/
 syn match   tgNumber    /\<\d\+\.\d*\>/
 syn match   tgComment   /\/\/.*$/
+" FIXME: this does not capture multi-line C-style comments
+syn match   tgComment   /\/\*.*\*\//
 syn region  tgString    start=/"/ skip=/\\"/ end=/"/
 
 if version >= 508 || !exists("did_c_syn_inits")
@@ -26,9 +29,8 @@ if version >= 508 || !exists("did_c_syn_inits")
     command -nargs=+ HiLink hi def link <args>
   endif
 
-  HiLink tgKeyword Type
+  HiLink tgKeyword Statement
   HiLink tgType Type
-  "HiLink llvmStatement Statement
   HiLink tgNumber Number
   HiLink tgComment Comment
   HiLink tgString String