From 0eb6cb33982e2b00f5ffdedc300fa27ed4007967 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Fri, 16 Dec 2022 20:09:55 -0700 Subject: Initial commit with goal file in mind --- vim/syntax/fiddle.vim | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 vim/syntax/fiddle.vim (limited to 'vim/syntax') 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 -- cgit