diff options
Diffstat (limited to 'context/data/scite/lexers/scite-context-lexer-lua.lua')
-rw-r--r-- | context/data/scite/lexers/scite-context-lexer-lua.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/context/data/scite/lexers/scite-context-lexer-lua.lua b/context/data/scite/lexers/scite-context-lexer-lua.lua index e10f49ff3..f03dbb665 100644 --- a/context/data/scite/lexers/scite-context-lexer-lua.lua +++ b/context/data/scite/lexers/scite-context-lexer-lua.lua @@ -42,6 +42,7 @@ local constants = { local csnames = { -- todo: option "context", "metafun", + "metapost", } local level = nil @@ -99,6 +100,9 @@ local rest = token("default", any) local shortcomment = token("comment", dashes * lexer.nonnewline^0) local longcomment = token("comment", dashes * longcomment) +-- fails on very long string with \ at end of lines (needs embedded lexer) +-- and also on newline before " but it makes no sense to waste tiem on it + local shortstring = token("quote", dquote) * token("string", (escaped + (1-dquote))^0) * token("quote", dquote) |