From 4a199c7b67b41eb7ac382f035c14aad71e27db86 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Tue, 20 Jun 2017 16:22:04 +0200
Subject: Add VIM syntax highlighting
---
ell.vim | 22 ++++++++++++++++++++++
greet.ell | 1 +
2 files changed, 23 insertions(+)
create mode 100644 ell.vim
diff --git a/ell.vim b/ell.vim
new file mode 100644
index 0000000..a51faf9
--- /dev/null
+++ b/ell.vim
@@ -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
diff --git a/greet.ell b/greet.ell
index b2f8ef9..a84463c 100644
--- a/greet.ell
+++ b/greet.ell
@@ -1,3 +1,4 @@
+# Decrement variable passed by name
set decr {
set @1 (- @@1 1)
}
--
cgit v1.2.3-70-g09d2