Update syntax.
Remove @nonull, add @optional and @nullable. Beginning of supporting TODO and FIXME in comments.
This commit is contained in:
parent
2e78e1dca9
commit
aa981dfbd4
|
@ -23,7 +23,7 @@ syn keyword eoStatements return
|
||||||
|
|
||||||
" syn match className "\(\w\+\.\)\+\w\+"
|
" syn match className "\(\w\+\.\)\+\w\+"
|
||||||
|
|
||||||
syn match attributes "@\(inout\|out\|in\|class\|free\|constructor\|extern\|protected\|const\|nonull\|warn_unused\|private\)"
|
syn match attributes "@\(inout\|out\|in\|class\|free\|constructor\|extern\|protected\|const\|optional\|nullable\|warn_unused\|private\)"
|
||||||
|
|
||||||
syn match eoLabelMatch "\w\+:" contains=eoClassBodyLabels
|
syn match eoLabelMatch "\w\+:" contains=eoClassBodyLabels
|
||||||
syn match eoBlockOpener "\w\+\s*{" contains=eoClassBodyBlockOpener,eoInnerBlockOpener
|
syn match eoBlockOpener "\w\+\s*{" contains=eoClassBodyBlockOpener,eoInnerBlockOpener
|
||||||
|
@ -67,6 +67,11 @@ syn region eoEventsRegion start="events\s*{" end="}" transparent
|
||||||
syn match eoEvents "^\s*[^;: ]\+\(;\|:\|\s\)" contained containedin=eoEventsRegion contains=eoEvent
|
syn match eoEvents "^\s*[^;: ]\+\(;\|:\|\s\)" contained containedin=eoEventsRegion contains=eoEvent
|
||||||
syn match eoEvent "[^;: ]\+" contained
|
syn match eoEvent "[^;: ]\+" contained
|
||||||
|
|
||||||
|
" Implements region
|
||||||
|
"syn region eoImplementsRegion start="\<implements\_s*{" end="}" transparent
|
||||||
|
"syn match eoImplements "\w\+" contained containedin=eoImplementsRegion
|
||||||
|
|
||||||
|
hi def link eoImplements Todo
|
||||||
hi def link eoEvent Identifier
|
hi def link eoEvent Identifier
|
||||||
hi def link eoClassBodyLabels Label
|
hi def link eoClassBodyLabels Label
|
||||||
hi def link eoClassBodyBlockOpener Label
|
hi def link eoClassBodyBlockOpener Label
|
||||||
|
|
Loading…
Reference in New Issue