summaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2024-09-20 10:43:43 -0600
committerJosh Rahm <joshuarahm@gmail.com>2024-09-20 10:43:43 -0600
commitf0c4da33e9576d2509b8c6330b1663e044e2dff3 (patch)
tree15120a7b0ca3795fc7b35478f708d54c1c988ec5 /vim
parentf1128c7c60809d1e96009eaed98c0756831fe29f (diff)
downloadfiddle-f0c4da33e9576d2509b8c6330b1663e044e2dff3.tar.gz
fiddle-f0c4da33e9576d2509b8c6330b1663e044e2dff3.tar.bz2
fiddle-f0c4da33e9576d2509b8c6330b1663e044e2dff3.zip
Some major changes to the structure of the language.
Added structures and unions to better define the layout and model overlapping concerns. renamed objtype -> type and object -> instance. added reserved statements for types.
Diffstat (limited to 'vim')
-rw-r--r--vim/syntax/fiddle.vim8
1 files changed, 5 insertions, 3 deletions
diff --git a/vim/syntax/fiddle.vim b/vim/syntax/fiddle.vim
index 22341a5..7d36e93 100644
--- a/vim/syntax/fiddle.vim
+++ b/vim/syntax/fiddle.vim
@@ -1,9 +1,10 @@
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 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
@@ -13,12 +14,13 @@ 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]\++
+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