From 0ea34d2d210937bb1d8ab22fab1b00e8f684aa81 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Wed, 15 Apr 2020 09:39:41 +0800 Subject: fix stupid msvc not supporting string literal longer than 16380 single-byte characters. --- src/LuaMinify.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src') 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 = { end end } +)lua_codes" - +R"lua_codes( -- -- ParseLua.lua -- @@ -950,8 +951,9 @@ local function ParseLua(src) -- return true, nodeFunc end +)lua_codes" - +R"lua_codes( function ParsePrimaryExpr(scope) local tokenList = {} @@ -1293,8 +1295,9 @@ local function ParseLua(src) ParseExpr = function(scope) return ParseSubExpr(scope, 0) end +)lua_codes" - +R"lua_codes( local function ParseStatement(scope) local stat = nil local tokenList = {} @@ -1706,8 +1709,9 @@ local function ParseLua(src) --print("Last Token: "..PrintTable(tok:Peek())) return st, main end +)lua_codes" - +R"lua_codes( -- -- FormatMini.lua -- -- cgit v1.2.3-55-g6feb