summaryrefslogtreecommitdiff
path: root/vim/syntax/fiddle.vim
blob: 7d36e935c83041da4851288f5b3d8684f3901f46 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
syn keyword FiddlePackage option package nextgroup=FiddleIdent skipwhite
syn keyword FiddleDecl reg instance at location reserved nextgroup=FiddleIdent skipwhite
syn keyword FiddleTypeDecl type regtype bits nextgroup=FiddleIdent skipwhite
syn keyword FiddleEnum enum
syn keyword FiddleBuiltin assert_pos
syn keyword FiddleModifier wo ro rw
syn keyword FiddleStorageClass struct union bitstruct bitunion

syn match FiddleColon +:+ skipwhite nextgroup=FiddleContainedType
syn match FiddleContainedType +[a-zA-Z0-9_]\++ contained

syn match FiddleIdent +[A-Za-z0-9_]\++ contained

syn match FiddleComment +\/\/.*$+
syn region FiddleDocComment start=+/\*\*+ end=+*/+

syn match FiddleNumber +\<[0-9_]\+\([xb]\)\@!\|0x[0-9A-Fa-f][0-9A-Fa-f_]*\|0b[01]\+\>+

hi! link FiddleContainedType Type
hi! link FiddleModifier StorageClass
hi! link FiddleBuiltin Function
hi! link FiddleEnum StorageClass
hi! link FiddleStorageClass FiddleEnum
hi! link FiddleDecl Type
hi! link FiddleNumber Number
hi! link FiddleDocComment Comment
hi! link FiddleComment Comment
hi! link FiddlePackage Include
hi! link FiddleTypeDecl StorageClass
hi! link FiddleIdent Identifier