vim-configs/syntax/eo.vim

38 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 int uint bool char uchar byte ubyte double float
syn keyword classKeywords class abstract legacy_prefix eo_prefix data contained
syn keyword classKeywords constructors properties methods implements events contained
syn keyword functionKeywords set get keys values params constructor destructor finalize virtual const contained return
syn match classKeywordsMatch "\w\+" contains=classKeywords,functionKeywords
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 Function
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 eoType Type
hi def link eoTodo Todo
let b:current_syntax = "eo"