diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-06-12 00:08:48 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-06-12 00:08:48 +0200 |
commit | 36ee3b791e253a00877a7b25e2d94b1dfc90a174 (patch) | |
tree | 51cddb18e68861f7ccbf6069e047fe0d3972961f /context/data/scite/context/lexers/scite-context-lexer-json.lua | |
parent | e8dc7842e52c4509ce38115c521672198beafca3 (diff) | |
download | context-36ee3b791e253a00877a7b25e2d94b1dfc90a174.tar.gz |
2019-06-11 19:28:00
Diffstat (limited to 'context/data/scite/context/lexers/scite-context-lexer-json.lua')
-rw-r--r-- | context/data/scite/context/lexers/scite-context-lexer-json.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/context/data/scite/context/lexers/scite-context-lexer-json.lua b/context/data/scite/context/lexers/scite-context-lexer-json.lua index 20a2d1d12..78e01fd2c 100644 --- a/context/data/scite/context/lexers/scite-context-lexer-json.lua +++ b/context/data/scite/context/lexers/scite-context-lexer-json.lua @@ -36,9 +36,10 @@ local spaces = space^1 local operator = S(':,{}[]') local fence = openarray + closearray + openhash + closehash -local escape_un = P("\\u") / "0x" * S("09","AF","af") +local escape_un = P("\\u") * S("09","AF","af") local escape_bs = P([[\]]) * P(1) local content = (escape_un + escape_bs + (1-double))^0 +local content = ((1-double))^0 local reserved = P("true") + P("false") |