diff options
Diffstat (limited to 'vim/syntax/fiddle.vim')
-rw-r--r-- | vim/syntax/fiddle.vim | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/vim/syntax/fiddle.vim b/vim/syntax/fiddle.vim new file mode 100644 index 0000000..4bd192c --- /dev/null +++ b/vim/syntax/fiddle.vim @@ -0,0 +1,28 @@ +syn keyword FiddlePackage package nextgroup=FiddleIdent skipwhite +syn keyword FiddleDecl reg object at location reserved nextgroup=FiddleIdent skipwhite +syn keyword FiddleTypeDecl objtype regtype bittype 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 |