diff options
| author | Hans Hagen <pragma@wxs.nl> | 2013-10-08 21:49:00 +0200 | 
|---|---|---|
| committer | Hans Hagen <pragma@wxs.nl> | 2013-10-08 21:49:00 +0200 | 
| commit | 9f5015afced623aa822f13a8d7445af9eb7e038a (patch) | |
| tree | dddcc2a41210ae71aeb8744a0d177e310e7ed041 /context | |
| parent | 454cbb2a3d99b77ca2c255b9259fe1bb7612b2ec (diff) | |
| download | context-9f5015afced623aa822f13a8d7445af9eb7e038a.tar.gz | |
beta 2013.10.08 21:49
Diffstat (limited to 'context')
| -rw-r--r-- | context/data/scite/lexers/scite-context-lexer-lua.lua | 3 | ||||
| -rw-r--r-- | context/data/scite/lexers/scite-context-lexer-tex.lua | 2 | 
2 files changed, 5 insertions, 0 deletions
| diff --git a/context/data/scite/lexers/scite-context-lexer-lua.lua b/context/data/scite/lexers/scite-context-lexer-lua.lua index b0297cf83..59cdd64f7 100644 --- a/context/data/scite/lexers/scite-context-lexer-lua.lua +++ b/context/data/scite/lexers/scite-context-lexer-lua.lua @@ -156,6 +156,9 @@ local number        = token("number", lexer.float + integer)  local validword     = R("AZ","az","__") * R("AZ","az","__","09")^0 +local utf8character = P(1) * R("\128\191")^1 -- unchecked but fast +local validword     = (R("AZ","az","__") + utf8character) * (R("AZ","az","__","09") + utf8character)^0 +  local identifier    = token("default",validword)  ----- operator      = token("special", P('..') + P('~=') + S('+-*/%^#=<>;:,.{}[]()')) -- maybe split off {}[]() diff --git a/context/data/scite/lexers/scite-context-lexer-tex.lua b/context/data/scite/lexers/scite-context-lexer-tex.lua index 34c88b16b..a509fadab 100644 --- a/context/data/scite/lexers/scite-context-lexer-tex.lua +++ b/context/data/scite/lexers/scite-context-lexer-tex.lua @@ -399,9 +399,11 @@ local inlinelua              = P("\\") * (                                 )  local startlua               = P("\\start") * Cmt(luaenvironment,startdisplaylua) +                             + P("<?lua") * Cmt(P(true),startdisplaylua)                               + inlinelua * space^0 * ( Cmt(P("{"),startinlinelua) )  local stoplua                = P("\\stop") * Cmt(luaenvironment,stopdisplaylua) +                             + P("?>") * Cmt(P(true),stopdisplaylua)                               + Cmt(P("{"),stopinlinelua_b)                               + Cmt(P("}"),stopinlinelua_e) | 
