summaryrefslogtreecommitdiff
path: root/context/data/scite/context/lexers/scite-context-lexer-lua.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2014-09-03 17:37:00 +0200
committerHans Hagen <pragma@wxs.nl>2014-09-03 17:37:00 +0200
commit19f0402bf96ee3aa359cd7361d2683b5ce05fdeb (patch)
treed5db57a51789365bbdc69815df5015b4891f9efb /context/data/scite/context/lexers/scite-context-lexer-lua.lua
parent54b35840ce8f91454174a2d63042d776222a378b (diff)
downloadcontext-19f0402bf96ee3aa359cd7361d2683b5ce05fdeb.tar.gz
beta 2014.09.03 17:37
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)