diff options
| author | Drahflow <drahflow@gmx.de> | 2014-12-26 22:08:11 +0100 |
|---|---|---|
| committer | Drahflow <drahflow@gmx.de> | 2014-12-26 22:08:11 +0100 |
| commit | 9a03f54ec140b449ef67971d40c88f774dc297db (patch) | |
| tree | 7a8d73b7894fd24138c91e41178109cf00b8ee90 | |
| parent | 65e109986246b98f0d49bac32eeef16c6fabea83 (diff) | |
Syntax highlighting for VIm
| -rw-r--r-- | support/elymas.vim | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/support/elymas.vim b/support/elymas.vim new file mode 100644 index 0000000..0474c42 --- /dev/null +++ b/support/elymas.vim @@ -0,0 +1,32 @@ +syn clear +syn case match + +hi link eyNonword Operator +hi link eyEscapeSeq SpecialChar +hi link eyControl Statement +hi link eyMath Function +hi link eyMacro Function +hi link eyOther Function +hi link eyNumber Constant +hi link eyString Constant +hi link eyAutoquoteWord Constant +hi link eyModule Constant +hi link eyComment Comment +hi link eyWord Normal + +syn match eyNonword /[^a-zA-Z0-9 ]\+/ +syn match eyWord /[a-zA-Z0-9]\+/ +syn match eyAutoquoteWord /[a-zA-Z0-9][^ ]*/ contained +syn match eyCombined /[^a-zA-Z0-9 ]\+[a-zA-Z0-9][^ ]*/ contains=eyNonWord,eyAutoquoteWord +syn match eyNumber /[0-9]\+/ +syn region eyString start=/"/ end=/"/ contains=eyEscapeSeq +syn match eyEscapeSeq /\\["n\\']/ contained +syn keyword eyControl rep include dump die each loop exe +syn keyword eyMath regex range +syn keyword eyMath sig len cat dearray dom +syn keyword eyMath add sub mul div mod and nand or xor nxor nor band bnand bor bxor bnxor bnor +syn keyword eyMath eq neq lt le gt ge gcd neg not bnot abs streq +syn keyword eyOther quoted deff defv defq defvs deffs defvt defft defvst deffst defvc deffc defvd deffd defm defms defmt defmst defmc defmd +syn keyword eyOther code sym blk +syn keyword eyModule sys +syn match eyComment /#.*$/ |
