aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-04-15 09:39:41 +0800
committerLi Jin <dragon-fly@qq.com>2020-04-15 09:39:41 +0800
commit0ea34d2d210937bb1d8ab22fab1b00e8f684aa81 (patch)
tree11c8a5039588ca78c41e882f42c793f4b8069ca0 /src
parentc987e51417b54df0fd84ebb32919e68630779e82 (diff)
downloadyuescript-0ea34d2d210937bb1d8ab22fab1b00e8f684aa81.tar.gz
yuescript-0ea34d2d210937bb1d8ab22fab1b00e8f684aa81.tar.bz2
yuescript-0ea34d2d210937bb1d8ab22fab1b00e8f684aa81.zip
fix stupid msvc not supporting string literal longer than 16380 single-byte characters.
Diffstat (limited to 'src')
-rw-r--r--src/LuaMinify.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/LuaMinify.h b/src/LuaMinify.h
index c1f5c95..4990646 100644
--- a/src/LuaMinify.h
+++ b/src/LuaMinify.h
@@ -303,8 +303,9 @@ local Scope = {
303 end 303 end
304 end 304 end
305} 305}
306)lua_codes"
306 307
307 308R"lua_codes(
308-- 309--
309-- ParseLua.lua 310-- ParseLua.lua
310-- 311--
@@ -950,8 +951,9 @@ local function ParseLua(src)
950 -- 951 --
951 return true, nodeFunc 952 return true, nodeFunc
952 end 953 end
954)lua_codes"
953 955
954 956R"lua_codes(
955 function ParsePrimaryExpr(scope) 957 function ParsePrimaryExpr(scope)
956 local tokenList = {} 958 local tokenList = {}
957 959
@@ -1293,8 +1295,9 @@ local function ParseLua(src)
1293 ParseExpr = function(scope) 1295 ParseExpr = function(scope)
1294 return ParseSubExpr(scope, 0) 1296 return ParseSubExpr(scope, 0)
1295 end 1297 end
1298)lua_codes"
1296 1299
1297 1300R"lua_codes(
1298 local function ParseStatement(scope) 1301 local function ParseStatement(scope)
1299 local stat = nil 1302 local stat = nil
1300 local tokenList = {} 1303 local tokenList = {}
@@ -1706,8 +1709,9 @@ local function ParseLua(src)
1706 --print("Last Token: "..PrintTable(tok:Peek())) 1709 --print("Last Token: "..PrintTable(tok:Peek()))
1707 return st, main 1710 return st, main
1708end 1711end
1712)lua_codes"
1709 1713
1710 1714R"lua_codes(
1711-- 1715--
1712-- FormatMini.lua 1716-- FormatMini.lua
1713-- 1717--