vim-configs/syntax/eo.vim

42 lines
1.3 KiB
VimL

" Vim syntax file
" Language: Eo
" Maintainer: Daniel Zaoui
" Last Change: 2014 06 01
" A bunch of useful keywords
syn keyword eoBoolean false true
syn keyword eoConstants null
syn keyword eoType bool byte ubyte char uchar short ushort int uint long ulong float double void
syn keyword eoStructure class abstract interface mixin type struct enum var
syn keyword eoClassBodyCommon legacy_prefix eo_prefix properties methods events constructors data
syn keyword functionKeywords set get keys values params constructor destructor finalize virtual const return
syn match className "\(\w\+\.\)\+\w\+"
syn match attributes "@\(inout\|out\|in\|class\|const\|extern\|protected\|constructor\|nonull\|warn_unused\|private\)"
syn keyword eoTodo contained TODO FIXME XXX
syn cluster eoCommentGroup contains=eoTodo
syn region eo_comment start="\/\*" end="\*\/" contains=@eoCommentGroup
hi def link classKeywords Statement
hi def link eoClassBodyCommon Label
hi def link functionKeywords Label
hi def link attributes Constant
hi def link eo_comment Comment
hi def link eoBoolean Boolean
hi def link eoConstants Constant
hi def link className Identifier
hi def link eoStructure Structure
hi def link eoType Type
hi def link eoTodo Todo
let b:current_syntax = "eo"