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
commit4d2337663d3a8d5413867eb158048dff2e02ba0d (patch)
treed8888c385801d8868f145116e407da64ee9ab91e /colm.vim
parent3427860e13e02675553c0f048d2b646c1255281b (diff)
downloadcolm-4d2337663d3a8d5413867eb158048dff2e02ba0d.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