diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-04-15 09:39:41 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-04-15 09:39:41 +0800 |
| commit | 0ea34d2d210937bb1d8ab22fab1b00e8f684aa81 (patch) | |
| tree | 11c8a5039588ca78c41e882f42c793f4b8069ca0 | |
| parent | c987e51417b54df0fd84ebb32919e68630779e82 (diff) | |
| download | yuescript-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 '')
| -rw-r--r-- | appveyor.yml | 14 | ||||
| -rw-r--r-- | src/LuaMinify.h | 12 |
2 files changed, 22 insertions, 4 deletions
diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..94125fd --- /dev/null +++ b/appveyor.yml | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | version: 1.0.{build} | ||
| 2 | branches: | ||
| 3 | only: | ||
| 4 | - master | ||
| 5 | image: Visual Studio 2019 | ||
| 6 | configuration: | ||
| 7 | - Debug | ||
| 8 | - Release | ||
| 9 | platform: x86 | ||
| 10 | build: | ||
| 11 | project: MoonPlus.sln | ||
| 12 | parallel: true | ||
| 13 | verbosity: normal | ||
| 14 | 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 = { | |||
| 303 | end | 303 | end |
| 304 | end | 304 | end |
| 305 | } | 305 | } |
| 306 | )lua_codes" | ||
| 306 | 307 | ||
| 307 | 308 | R"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 | 956 | R"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 | 1300 | R"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 |
| 1708 | end | 1711 | end |
| 1712 | )lua_codes" | ||
| 1709 | 1713 | ||
| 1710 | 1714 | R"lua_codes( | |
| 1711 | -- | 1715 | -- |
| 1712 | -- FormatMini.lua | 1716 | -- FormatMini.lua |
| 1713 | -- | 1717 | -- |
