File tree Expand file tree Collapse file tree 3 files changed +3
-42
lines changed Expand file tree Collapse file tree 3 files changed +3
-42
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ local function generateWarning(token, message)
56
56
end
57
57
58
58
function Parser :new (settings )
59
- local luaVersion = (settings and settings .LuaVersion ) or LuaVersion .LuaU ;
59
+ local luaVersion = (settings and ( settings .luaVersion or settings . LuaVersion ) ) or LuaVersion .LuaU ;
60
60
local parser = {
61
61
luaVersion = luaVersion ,
62
62
tokenizer = Tokenizer :new ({
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ local Pipeline = {
44
44
45
45
46
46
function Pipeline :new (settings )
47
- local luaVersion = settings .luaVersion or Pipeline .DefaultSettings .LuaVersion ;
47
+ local luaVersion = settings .luaVersion or settings . LuaVersion or Pipeline .DefaultSettings .LuaVersion ;
48
48
local conventions = Enums .Conventions [luaVersion ];
49
49
if (not conventions ) then
50
50
logger :error (" The Lua Version \" " .. luaVersion
Original file line number Diff line number Diff line change @@ -430,46 +430,7 @@ function Tokenizer:multiLineString()
430
430
local value = " " ;
431
431
while true do
432
432
local char = get (self );
433
- if (char == " \\ " ) then
434
- char = get (self );
435
-
436
- local escape = self .EscapeSequences [char ];
437
- if (type (escape ) == " string" ) then
438
- char = escape ;
439
-
440
- elseif (self .NumericalEscapes and self .NumberCharsLookup [char ]) then
441
- local numstr = char ;
442
-
443
- if (is (self , self .NumberCharsLookup )) then
444
- char = get (self );
445
- numstr = numstr .. char ;
446
- end
447
-
448
- if (is (self , self .NumberCharsLookup )) then
449
- char = get (self );
450
- numstr = numstr .. char ;
451
- end
452
-
453
- char = string.char (tonumber (numstr ));
454
-
455
- elseif (self .UnicodeEscapes and char == " u" ) then
456
- expect (self , " {" );
457
- local num = " " ;
458
- while (is (self , self .HexNumberCharsLookup )) do
459
- num = num .. get (self );
460
- end
461
- expect (self , " }" );
462
- char = util .utf8char (tonumber (num , 16 ));
463
- elseif (self .HexEscapes and char == " x" ) then
464
- local hex = expect (self , self .HexNumberCharsLookup ) .. expect (self , self .HexNumberCharsLookup );
465
- char = string.char (tonumber (hex , 16 ));
466
- elseif (self .EscapeZIgnoreNextWhitespace and char == " z" ) then
467
- char = " " ;
468
- while (is (self , Tokenizer .WHITESPACE_CHARS )) do
469
- self .index = self .index + 1 ;
470
- end
471
- end
472
- elseif (char == ' ]' ) then
433
+ if (char == ' ]' ) then
473
434
local eqCount2 = 0 ;
474
435
while (is (self , " =" )) do
475
436
char = char .. get (self );
You can’t perform that action at this time.
0 commit comments