We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79e7539 commit cdb96fbCopy full SHA for cdb96fb
lua-parser/parser.lua
@@ -423,7 +423,10 @@ local G = { V"Lua",
423
+ P"u" * expect("{", "OBraceUEsc")
424
* expect(C(xdigit^1), "DigitUEsc") * Cc(16)
425
* expect("}", "CBraceUEsc")
426
- / tonumber / string.char -- true max is \u{10FFFF}
+ / tonumber
427
+ / (utf8 and utf8.char or string.char) -- true max is \u{10FFFF}
428
+ -- utf8.char needs Lua 5.3
429
+ -- string.char works only until \u{FF}
430
431
+ throw("EscSeq")
432
);
0 commit comments