mirror of
https://git.sfja.dk/Mikkel/slige.git
synced 2025-01-18 10:56:30 +00:00
pub, mod, anno syntax
This commit is contained in:
parent
e56725dd4f
commit
9f17396571
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user