jackdanielz pushed a commit to branch master. http://git.enlightenment.org/editors/vim-configs.git/commit/?id=c25369f5c5c196416beaf74181c9889f52ad1842
commit c25369f5c5c196416beaf74181c9889f52ad1842 Author: Daniel Zaoui <[email protected]> Date: Tue Jul 29 03:40:18 2014 +0300 Eo: Add simple syntax files for Eo format. --- ftdetect/eo.vim | 1 + syntax/eo.vim | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/ftdetect/eo.vim b/ftdetect/eo.vim new file mode 100644 index 0000000..6898860 --- /dev/null +++ b/ftdetect/eo.vim @@ -0,0 +1 @@ +au BufRead,BufNewFile *.eo set filetype=eo diff --git a/syntax/eo.vim b/syntax/eo.vim new file mode 100644 index 0000000..8e9c68d --- /dev/null +++ b/syntax/eo.vim @@ -0,0 +1,34 @@ +" Vim syntax file +" Language: Eo +" Maintainer: Daniel Zaoui +" Last Change: 2014 06 01 + +" A bunch of useful keywords +syn keyword classKeywords class legacy_prefix eo_prefix data contained +syn keyword classKeywords constructors properties methods implements events contained + +syn keyword functionKeywords set get keys values params constructor const contained + +syn match classKeywordsMatch "\w\+" contains=classKeywords,functionKeywords +syn match className "(\w\+::)*\w" + +syn region eo_comment start="\/\*" end="\*\/" + +" Define the default highlighting. +" For version 5.7 and earlier: only when not done already +" For version 5.8 and later: only when an item doesn't have highlighting yet +if version >= 508 + if version < 508 + command -nargs=+ HiLink hi link <args> + else + command -nargs=+ HiLink hi def link <args> + endif + + HiLink classKeywords Function + HiLink functionKeywords Label + HiLink eo_comment Comment + + delcommand HiLink +endif + +let b:current_syntax = "eo" --
