Eo: Make some keywords more strict (usage location).
This commit is contained in:
parent
82f55dc788
commit
5634b24642
|
@ -12,15 +12,22 @@ syn keyword eoType bool byte ubyte char uchar short ushort int uint long ulon
|
|||
syn keyword eoStructure class abstract interface mixin struct enum var
|
||||
syn keyword eoTypedef type
|
||||
|
||||
syn keyword eoClassBodyCommon legacy_prefix eo_prefix properties methods events constructors data implements
|
||||
syn keyword eoClassBodyLabels legacy_prefix eo_prefix data contained
|
||||
syn keyword eoClassBodyBlockOpener properties methods events constructors implements contained
|
||||
|
||||
syn keyword functionKeywords set get keys values params constructor destructor finalize virtual const legacy own func
|
||||
syn keyword eoInnerBlockOpener set get keys values params contained
|
||||
syn keyword eoTypeClass const own contained
|
||||
syn keyword functionKeywords constructor destructor finalize virtual legacy func
|
||||
syn keyword eoStatements return
|
||||
|
||||
syn match className "\(\w\+\.\)\+\w\+"
|
||||
|
||||
syn match attributes "@\(inout\|out\|in\|class\|const\|extern\|protected\|constructor\|nonull\|warn_unused\|private\)"
|
||||
|
||||
syn match eoLabelMatch "\w\+:" contains=eoClassBodyLabels
|
||||
syn match eoBlockOpener "\w\+\s*{" contains=eoClassBodyBlockOpener,eoInnerBlockOpener
|
||||
syn match eoParenOpener "\w\+\s*(" contains=eoTypeClass
|
||||
|
||||
syn keyword eoTodo contained TODO FIXME XXX
|
||||
syn cluster eoCommentGroup contains=eoTodo
|
||||
|
||||
|
@ -30,8 +37,11 @@ syn region eoBlock start="{" end="}" transparent fold
|
|||
|
||||
syn region eo_comment start="\/\*" end="\*\/" contains=@eoCommentGroup
|
||||
|
||||
hi def link eoClassBodyCommon Label
|
||||
hi def link eoClassBodyLabels Label
|
||||
hi def link eoClassBodyBlockOpener Label
|
||||
hi def link eoInnerBlockOpener Label
|
||||
hi def link functionKeywords Label
|
||||
hi def link eoTypeClass Label
|
||||
hi def link attributes Constant
|
||||
hi def link eo_comment Comment
|
||||
hi def link eoBoolean Boolean
|
||||
|
|
Loading…
Reference in New Issue