diff options
Diffstat (limited to 'Master/texmf-dist/context/data/textadept/context/lexers/scite-context-lexer-mps.lua')
-rw-r--r-- | Master/texmf-dist/context/data/textadept/context/lexers/scite-context-lexer-mps.lua | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Master/texmf-dist/context/data/textadept/context/lexers/scite-context-lexer-mps.lua b/Master/texmf-dist/context/data/textadept/context/lexers/scite-context-lexer-mps.lua index 4bbfae03cff..1c87ea6d0ba 100644 --- a/Master/texmf-dist/context/data/textadept/context/lexers/scite-context-lexer-mps.lua +++ b/Master/texmf-dist/context/data/textadept/context/lexers/scite-context-lexer-mps.lua @@ -91,12 +91,9 @@ local plain = token("plain", exact_match(metapostcommands)) local quoted = token("quote", dquote) * token("string", P(1-dquote)^0) * token("quote", dquote) -local separator = P(" ") + S("\n\r")^1 -local btex = (P("btex") + P("verbatimtex")) * separator -local etex = separator * P("etex") -local texstuff = token("quote", btex) - * token("string", (1-etex)^0) - * token("quote", etex) +local texstuff = token("quote", P("btex ") + P("verbatimtex ")) + * token("string", P(1-P(" etex"))^0) + * token("quote", P(" etex")) local primitive = token("primitive", exact_match(metapostprimitives)) local identifier = token("default", cstoken^1) local number = token("number", number) @@ -133,10 +130,10 @@ metafunlexer._rules = { { "comment", comment }, { "internal", internal }, { "shortcut", shortcut }, - { "luacall", luacall }, { "helper", helper }, { "plain", plain }, { "primitive", primitive }, + { "luacall", luacall }, { "texstuff", texstuff }, { "suffix", suffix }, { "identifier", identifier }, |