3 " Maintainer: The LLVM team, http://llvm.org/
8 elseif exists("b:current_syntax")
14 syn keyword tgKeyword def let in code dag field include
15 syn keyword tgType class int string list bit bits
16 " FIXME: this does not handle hex (0x...) or binary (0b...) constants
17 syn match tgNumber /\<\d\+\>/
18 syn match tgNumber /\<\d\+\.\d*\>/
19 syn match tgComment /\/\/.*$/
20 " FIXME: this does not capture multi-line C-style comments
21 syn match tgComment /\/\*.*\*\//
22 syn region tgString start=/"/ skip=/\\"/ end=/"/
24 if version >= 508 || !exists("did_c_syn_inits")
26 let did_c_syn_inits = 1
27 command -nargs=+ HiLink hi link <args>
29 command -nargs=+ HiLink hi def link <args>
32 HiLink tgKeyword Statement
34 HiLink tgNumber Number
35 HiLink tgComment Comment
36 HiLink tgString String
41 let b:current_syntax = "tablegen"