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. --- appveyor.yml | 14 ++++++++++++++ src/LuaMinify.h | 12 ++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..94125fd --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,14 @@ +version: 1.0.{build} +branches: + only: + - master +image: Visual Studio 2019 +configuration: +- Debug +- Release +platform: x86 +build: + project: MoonPlus.sln + parallel: true + verbosity: normal +test: off 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