summaryrefslogtreecommitdiff
path: root/context/data/scite/context/lexers/scite-context-lexer-lua.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2014-09-03 18:15:04 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2014-09-03 18:15:04 +0200
commita7e8a4c1b4ed62b26406a2fa72918cef6c059cb8 (patch)
tree257ab8efbc585302030078f960ded2547db47feb /context/data/scite/context/lexers/scite-context-lexer-lua.lua
parente85e42343c3d3ba4e84f39647060c075e8b4dedc (diff)
downloadcontext-a7e8a4c1b4ed62b26406a2fa72918cef6c059cb8.tar.gz
2014-09-03 17:39:00
Diffstat (limited to 'context/data/scite/context/lexers/scite-context-lexer-lua.lua')
-rw-r--r--context/data/scite/context/lexers/scite-context-lexer-lua.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/context/data/scite/context/lexers/scite-context-lexer-lua.lua b/context/data/scite/context/lexers/scite-context-lexer-lua.lua
index c44d586ba..3d5d18fc8 100644
--- a/context/data/scite/context/lexers/scite-context-lexer-lua.lua
+++ b/context/data/scite/context/lexers/scite-context-lexer-lua.lua
@@ -25,6 +25,7 @@ local lualexer = lexer.new("lua","scite-context-lexer-lua")
local whitespace = lualexer.whitespace
local stringlexer = lexer.load("scite-context-lexer-lua-longstring")
+local labellexer = lexer.load("scite-context-lexer-lua-labelstring")
local directives = { } -- communication channel
@@ -185,11 +186,15 @@ local structure = token("special", S('{}[]()'))
local optionalspace = spacing^0
local hasargument = #S("{([")
+-- ideal should be an embedded lexer ..
+
local gotokeyword = token("keyword", P("goto"))
* spacing
* token("grouping",validword)
local gotolabel = token("keyword", P("::"))
+ * (spacing + shortcomment)^0
* token("grouping",validword)
+ * (spacing + shortcomment)^0
* token("keyword", P("::"))
local p_keywords = exact_match(keywords)