summaryrefslogtreecommitdiff
path: root/vim/syntax/fiddle.vim
blob: 01e9d049c8d856a435884af19e7b1132e19bf8c8 (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
syn keyword FiddlePackage option package nextgroup=FiddleIdent skipwhite
syn keyword FiddleDecl reg object at location reserved nextgroup=FiddleIdent skipwhite
syn keyword FiddleTypeDecl objtype regtype bits nextgroup=FiddleIdent skipwhite
syn keyword FiddleEnum enum
syn keyword FiddleBuiltin assert_pos
syn keyword FiddleModifier wo ro rw

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_]\+\|0b[01]\++

hi! link FiddleContainedType Type
hi! link FiddleModifier StorageClass
hi! link FiddleBuiltin Function
hi! link FiddleEnum StorageClass
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