diff options
Diffstat (limited to 'context/data/scite/lexers/scite-context-lexer-lua-longstring.lua')
-rw-r--r-- | context/data/scite/lexers/scite-context-lexer-lua-longstring.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/context/data/scite/lexers/scite-context-lexer-lua-longstring.lua b/context/data/scite/lexers/scite-context-lexer-lua-longstring.lua new file mode 100644 index 000000000..dd58dfe3b --- /dev/null +++ b/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 + +module(...) + +local stringlexer = _M + +local whitespace = stringlexer.WHITESPACE -- triggers states + +local space = lexer.space +local nospace = 1 - space + +local p_spaces = token(whitespace, space ^1) +local p_string = token("string", nospace^1) + +_rules = { + { "whitespace", p_spaces }, + { "string", p_string }, +} + +_tokenstyles = lexer.context.styleset |