summaryrefslogtreecommitdiff
path: root/context/data/scite/lexers/scite-context-lexer-xml-cdata.lua
diff options
context:
space:
mode:
Diffstat (limited to 'context/data/scite/lexers/scite-context-lexer-xml-cdata.lua')
-rw-r--r--context/data/scite/lexers/scite-context-lexer-xml-cdata.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/context/data/scite/lexers/scite-context-lexer-xml-cdata.lua b/context/data/scite/lexers/scite-context-lexer-xml-cdata.lua
index 511465b01..7dfaed5bc 100644
--- a/context/data/scite/lexers/scite-context-lexer-xml-cdata.lua
+++ b/context/data/scite/lexers/scite-context-lexer-xml-cdata.lua
@@ -10,21 +10,21 @@ local lexer = lexer
local token = lexer.token
local P = lpeg.P
-local xmlcdatalexer = { _NAME = "xmlcdata" }
+local xmlcdatalexer = { _NAME = "xml-cdata" }
+local whitespace = lexer.WHITESPACE -- triggers states
+local context = lexer.context
-local whitespace = lexer.WHITESPACE -- triggers states
+local space = lexer.space
+local nospace = 1 - space - P("]]>")
-local space = lexer.space
-local nospace = 1 - space - P("]]>")
-
-local p_spaces = token(whitespace, space ^1)
-local p_cdata = token("comment", nospace^1)
+local p_spaces = token(whitespace, space ^1)
+local p_cdata = token("comment", nospace^1)
xmlcdatalexer._rules = {
{ "whitespace", p_spaces },
{ "cdata", p_cdata },
}
-xmlcdatalexer._tokenstyles = lexer.context.styleset
+xmlcdatalexer._tokenstyles = context.styleset
return xmlcdatalexer