From f0c4da33e9576d2509b8c6330b1663e044e2dff3 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Fri, 20 Sep 2024 10:43:43 -0600 Subject: 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. --- vim/syntax/fiddle.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'vim/syntax') 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 -- cgit