blob: f93fbed32e79cdaa4be0f99667ffed978f04c6c8 [file] [log] [blame]
Misha Brukman115dc0d2003-08-11 17:56:08 +00001" Vim syntax file
2" Language: TableGen
3" Maintainer: The LLVM team, http://llvm.cs.uiuc.edu/
4" Updated: 2003-08-11
5
6if version < 600
7 syntax clear
8elseif exists("b:current_syntax")
9 finish
10endif
11
12syn case match
13
14syn keyword tgKeyword def let in code dag
15syn keyword tgType class int string list bit bits
16syn match tgNumber /\<\d\+\>/
17syn match tgNumber /\<\d\+\.\d*\>/
18syn match tgComment /\/\/.*$/
19syn region tgString start=/"/ skip=/\\"/ end=/"/
20
21if version >= 508 || !exists("did_c_syn_inits")
22 if version < 508
23 let did_c_syn_inits = 1
24 command -nargs=+ HiLink hi link <args>
25 else
26 command -nargs=+ HiLink hi def link <args>
27 endif
28
29 HiLink tgKeyword Type
30 HiLink tgType Type
31 "HiLink llvmStatement Statement
32 HiLink tgNumber Number
33 HiLink tgComment Comment
34 HiLink tgString String
35
36 delcommand HiLink
37endif
38
39let b:current_syntax = "tablegen"