Add VIM syntax highlighting

This commit is contained in:
Přemysl Eric Janouch 2017-06-20 16:22:04 +02:00
parent 0ae4a42335
commit 4a199c7b67
Signed by: p
GPG Key ID: B715679E3A361BE6
2 changed files with 23 additions and 0 deletions

22
ell.vim Normal file
View File

@ -0,0 +1,22 @@
if exists("b:current_syntax")
finish
endif
syn iskeyword 1-255,^[,^],^{,^},^(,^),^;,^@-@,^#,^',^9,^10,^13,^32
syn keyword ellSTL local set list values if map print .. system parse try throw
\ + - * / not and or eq? lt? = < unless filter for break
\ ne? le? ge? gt? <> <= >= >
syn match ellComment "#.*"
syn match ellSpecial "[][}{)(;@]"
syn match ellVar "\(@[\t ]*\)\@<=\k\+"
syn match ellEscape display "\\\([xX]\x\{2}\|.\|$\)" contained
syn region ellString start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=ellEscape
let b:current_syntax = "ell"
hi def link ellSTL Function
hi def link ellComment Comment
hi def link ellSpecial Special
hi def link ellVar Identifier
hi def link ellEscape SpecialChar
hi def link ellString String

View File

@ -1,3 +1,4 @@
# Decrement variable passed by name
set decr { set decr {
set @1 (- @@1 1) set @1 (- @@1 1)
} }