summaryrefslogtreecommitdiff
path: root/colm.vim
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2014-01-14 20:16:55 -0500
committerAdrian Thurston <thurston@complang.org>2014-01-14 20:16:55 -0500
commit719bedbccdf190d173c2078415c29553c6beecb3 (patch)
treed8888c385801d8868f145116e407da64ee9ab91e /colm.vim
parentaa51dab49b282283a7e7b45ea65221f3eb87b8c0 (diff)
downloadcolm-719bedbccdf190d173c2078415c29553c6beecb3.tar.gz
added backtick lexical syntax for literal tokens
Added a new syntax for literal tokens. A single backtick is starts the literal. Ends at whitespace or ] in second or greater position. The zero length token is now just a plain backtick. Removed comma as separator in literal statement. Single-quoted strings are now treated like double-quoted strings. They may appear in expressions and are concatenated with the other string forms. Allowing ',' in parameter and argument lists to separate arguments, eg foo('a', 'b').
Diffstat (limited to 'colm.vim')
-rw-r--r--colm.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/colm.vim b/colm.vim
index 2ea7b7f5..013387f2 100644
--- a/colm.vim
+++ b/colm.vim
@@ -40,6 +40,8 @@ syntax match char "\\." contained
syntax match otLit "\~.*$"
syntax match otLit "'\(\\.\|[^'\\]\)*\('[i]*\)\?"
+syntax match otLit "`[^ \t\r\]]*"
+syntax match otLit "`\]"
"
" Other stuff