3 " Maintainer: The LLVM team, http://llvm.cs.uiuc.edu/
8 elseif exists("b:current_syntax")
14 syn keyword tgKeyword def let in code dag field
15 syn keyword tgType class int string list bit bits
16 syn match tgNumber /\<\d\+\>/
17 syn match tgNumber /\<\d\+\.\d*\>/
18 syn match tgComment /\/\/.*$/
19 " FIXME: this does not capture multi-line C-style comments
20 syn match tgComment /\/\*.*\*\//
21 syn region tgString start=/"/ skip=/\\"/ end=/"/
23 if version >= 508 || !exists("did_c_syn_inits")
25 let did_c_syn_inits = 1
26 command -nargs=+ HiLink hi link <args>
28 command -nargs=+ HiLink hi def link <args>
31 HiLink tgKeyword Statement
33 HiLink tgNumber Number
34 HiLink tgComment Comment
35 HiLink tgString String
40 let b:current_syntax = "tablegen"