diff options
Diffstat (limited to 'Master/texmf-dist/context/data/scite/lexers/scite-context-lexer-lua-longstring.lua')
-rw-r--r-- | Master/texmf-dist/context/data/scite/lexers/scite-context-lexer-lua-longstring.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Master/texmf-dist/context/data/scite/lexers/scite-context-lexer-lua-longstring.lua b/Master/texmf-dist/context/data/scite/lexers/scite-context-lexer-lua-longstring.lua new file mode 100644 index 00000000000..26bdb8dbccb --- /dev/null +++ b/Master/texmf-dist/context/data/scite/lexers/scite-context-lexer-lua-longstring.lua @@ -0,0 +1,22 @@ +local lexer = lexer +local token = lexer.token +local P = lpeg.P + +local stringlexer = { _NAME = "lua-longstring", _FILENAME = "scite-context-lexer-lua-longstring" } +local whitespace = lexer.WHITESPACE +local context = lexer.context + +local space = lexer.space +local nospace = 1 - space + +local p_spaces = token(whitespace, space ^1) +local p_string = token("string", nospace^1) + +stringlexer._rules = { + { "whitespace", p_spaces }, + { "string", p_string }, +} + +stringlexer._tokenstyles = lexer.context.styleset + +return stringlexer |