pub, mod, anno syntax

This commit is contained in:
sfja 2024-12-31 00:24:22 +01:00
parent e56725dd4f
commit 9f17396571

View File

@ -8,7 +8,7 @@ if exists("b:current_syntax")
endif
syn keyword Keyword break return let fn loop if else struct import or and not while for in
syn keyword Keyword break return let fn loop if else struct import or and not while for in mod pub
syn keyword Special null
syn keyword Type int string bool
syn keyword Boolean true false
@ -48,6 +48,7 @@ syn match Comment "//.*$" contains=Todo
syn region Comment start=+/\*+ end=+\*/+ contains=Todo
syn match Identifier '[a-z_]\w*'
syn match Type '[A-Z]\w*'
@ -57,4 +58,8 @@ syn match Function ' \zs[a-zA-Z_]\w*\ze\s\{-}<.\{-}>\s\{-}(.\{-})'
syn region sligeBlock start="{" end="}" transparent fold
syn region sligeAnno start="#!\?\[" end="]" contains=Identifier,Type
hi def link sligeAnno PreProc
let b:current_syntax = "slige"