summaryrefslogtreecommitdiff
path: root/context/data/scite/lexers/scite-context-lexer-lua.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-10-12 11:40:13 +0300
committerMarius <mariausol@gmail.com>2011-10-12 11:40:13 +0300
commitc766ac76f88d4542235043790e8048c12b37d4ff (patch)
tree61e4e4fe4150eeb24e7bdb2fa5a95df1dd4d138f /context/data/scite/lexers/scite-context-lexer-lua.lua
parentd67c88b277ff5d781397fb99ef9470f51b8eeced (diff)
downloadcontext-c766ac76f88d4542235043790e8048c12b37d4ff.tar.gz
beta 2011.10.12 10:14
Diffstat (limited to 'context/data/scite/lexers/scite-context-lexer-lua.lua')
-rw-r--r--context/data/scite/lexers/scite-context-lexer-lua.lua4
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)