Update syntax.

Remove @nonull, add @optional and @nullable.

Beginning of supporting TODO and FIXME in comments.
This commit is contained in:
Tom Hacohen 2015-02-12 13:48:52 +00:00
parent 2e78e1dca9
commit aa981dfbd4
1 changed files with 6 additions and 1 deletions

View File

@ -23,7 +23,7 @@ syn keyword eoStatements return
" 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 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 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 eoClassBodyLabels Label
hi def link eoClassBodyBlockOpener Label