diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-09-09 14:55:35 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-09-09 14:55:35 +0200 |
commit | 438b065a2337ee587442f25ddc587c4762f4d0b0 (patch) | |
tree | d18c8f7e51dd7e96b8e774f94d3f8862a6c38f73 /context/data/scite/context/lexers/scite-context-lexer.lua | |
parent | fca2d946bc4d3ef525c3a2c9016e3b88d6d09812 (diff) | |
download | context-438b065a2337ee587442f25ddc587c4762f4d0b0.tar.gz |
2019-09-09 13:52:00
Diffstat (limited to 'context/data/scite/context/lexers/scite-context-lexer.lua')
-rw-r--r-- | context/data/scite/context/lexers/scite-context-lexer.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/context/data/scite/context/lexers/scite-context-lexer.lua b/context/data/scite/context/lexers/scite-context-lexer.lua index 234b03c05..8451abc85 100644 --- a/context/data/scite/context/lexers/scite-context-lexer.lua +++ b/context/data/scite/context/lexers/scite-context-lexer.lua @@ -2240,6 +2240,10 @@ do local utf8three = R("\224\239") * utf8next * utf8next local utf8four = R("\240\244") * utf8next * utf8next * utf8next + local utfidentifier = utf8two + utf8three + utf8four + helpers.utfidentifier = (R("AZ","az","__") + utfidentifier) + * (R("AZ","az","__","09") + utfidentifier)^0 + helpers.utfcharpattern = P(1) * utf8next^0 -- unchecked but fast helpers.utfbytepattern = utf8one / byte + utf8two / function(s) local c1, c2 = byte(s,1,2) return c1 * 64 + c2 - 12416 end |