diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2015-06-12 10:15:04 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2015-06-12 10:15:04 +0200 |
commit | c727ed7331960718681fa4222bec81fb577b56fb (patch) | |
tree | e90818d7ead83f08561f6c89396e1f5f1074b157 /context/data/scite/context/lexers/scite-context-lexer-mps.lua | |
parent | 3e816646efde05d34564646800299790d32a2607 (diff) | |
download | context-c727ed7331960718681fa4222bec81fb577b56fb.tar.gz |
2015-06-12 10:08:00
Diffstat (limited to 'context/data/scite/context/lexers/scite-context-lexer-mps.lua')
-rw-r--r-- | context/data/scite/context/lexers/scite-context-lexer-mps.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/context/data/scite/context/lexers/scite-context-lexer-mps.lua b/context/data/scite/context/lexers/scite-context-lexer-mps.lua index b87ea83cb..8f89ae9ef 100644 --- a/context/data/scite/context/lexers/scite-context-lexer-mps.lua +++ b/context/data/scite/context/lexers/scite-context-lexer-mps.lua @@ -122,6 +122,8 @@ local stopluacode = #stoplua * token("embedded", stoplua) lexer.embed_lexer(metafunlexer, cldlexer, startluacode, stopluacode) +local luacall = token("embedded",P("lua") * ( P(".") * R("az","AZ")^1 )^1) + metafunlexer._rules = { { "whitespace", spacing }, { "comment", comment }, @@ -130,6 +132,7 @@ metafunlexer._rules = { { "helper", helper }, { "plain", plain }, { "primitive", primitive }, + { "luacall", luacall }, { "texstuff", texstuff }, { "identifier", identifier }, { "number", number }, |