diff -Nru luacheck-0.24.0/build/Makefile luacheck-0.25.0/build/Makefile --- luacheck-0.24.0/build/Makefile 2020-08-20 22:21:52.000000000 +0000 +++ luacheck-0.25.0/build/Makefile 2021-08-10 15:19:20.000000000 +0000 @@ -15,11 +15,13 @@ BASE_AR= ar rc BASE_RANLIB= ranlib BASE_STRIP= strip +BASE_NM= nm CROSS= CC= $(CROSS)$(BASE_CC) CFLAGS= -O2 -Wall -Wextra AR= $(CROSS)$(BASE_AR) +NM= $(CROSS)$(BASE_NM) RANLIB= $(CROSS)$(BASE_RANLIB) STRIP= $(CROSS)$(BASE_STRIP) @@ -72,23 +74,24 @@ $(AR) $@ $^ $(RANLIB) $@ -luacheck.luastatic.c: $(LUA_A) $(LFS_A) $(LANES_A) +$(TARGET): $(LUA_A) $(LFS_A) $(LANES_A) cp $(LUA_A) . cp $(LFS_A) . cp $(ARGPARSE_DIR)/src/argparse.lua . cp $(LANES_A) . cp $(LANES_DIR)/src/lanes.lua . cp -r ../src/luacheck . - CC="" luastatic bin/luacheck.lua luacheck/*.lua luacheck/*/*.lua luacheck/*/*/*.lua argparse.lua lanes.lua liblua.a lfs.a lanes.a - -$(TARGET): luacheck.luastatic.c - $(CC) $(if $(LINUX),-static) -Os $< $(LUA_A) $(LFS_A) $(LANES_A) -I$(LUA_DIR)/src -lm $(if $(LINUX),-lpthread) -o $@ - $(STRIP) $@ + cp -f bin/luacheck.lua bin/luacheck_bin.lua + CC=$(CC) NM=$(NM) RANLIB=$(RANLIB) luastatic bin/luacheck_bin.lua luacheck/*.lua luacheck/*/*.lua luacheck/*/*/*.lua argparse.lua lanes.lua $(LUA_A) $(LFS_A) $(LANES_A) -lm $(if $(LINUX),-lpthread) -I$(LUA_DIR)/src + rm luacheck_bin.luastatic.c + $(STRIP) luacheck_bin* + mv luacheck_bin* $(TARGET) clean: rm -f $(TARGET) luacheck.luastatic.c rm -f $(LUA_O) $(LUA_A) $(LFS_O) $(LFS_A) $(LANES_O) $(LANES_A) - rm -f argparse.lua lanes.lua liblua.a lfs.a lanes.a + rm -f argparse.lua lanes.lua lfs.a lanes.a liblua.a rm -rf luacheck + rm -f luacheck_bin* .PHONY: default fetch clean diff -Nru luacheck-0.24.0/CHANGELOG.md luacheck-0.25.0/CHANGELOG.md --- luacheck-0.24.0/CHANGELOG.md 2020-08-20 22:21:52.000000000 +0000 +++ luacheck-0.25.0/CHANGELOG.md 2021-08-10 15:19:20.000000000 +0000 @@ -1,5 +1,16 @@ # Changelog +## 0.25.0 (2020-08-25) + +### New features + +* New values for CLI option --std: lua54, lua54c +* New lua54 standard library definitions + +### Fixes + +* Lua 5.4 allows 31bits utf8 codepoint + ## 0.24.0 (2020-08-20) ### Changes diff -Nru luacheck-0.24.0/debian/changelog luacheck-0.25.0/debian/changelog --- luacheck-0.24.0/debian/changelog 2020-09-24 07:19:28.000000000 +0000 +++ luacheck-0.25.0/debian/changelog 2021-11-23 15:04:44.000000000 +0000 @@ -1,3 +1,10 @@ +luacheck (0.25.0-1) unstable; urgency=medium + + * lua team as maintainer (Closes: #995550) + * New upstream version 0.25.0 + + -- Victor Seva Tue, 23 Nov 2021 16:04:44 +0100 + luacheck (0.24.0-2) unstable; urgency=medium * fix find lua files (Closes: #970844) diff -Nru luacheck-0.24.0/debian/control luacheck-0.25.0/debian/control --- luacheck-0.24.0/debian/control 2020-09-24 07:19:28.000000000 +0000 +++ luacheck-0.25.0/debian/control 2021-11-23 15:04:44.000000000 +0000 @@ -1,9 +1,9 @@ Source: luacheck Section: interpreters Priority: optional -Maintainer: Victor Seva +Maintainer: Debian Lua Team Uploaders: - Enrico Tassi , + Victor Seva , Build-Depends: debhelper-compat (= 12), dh-lua (>= 16~), diff -Nru luacheck-0.24.0/docsrc/cli.rst luacheck-0.25.0/docsrc/cli.rst --- luacheck-0.24.0/docsrc/cli.rst 2020-08-20 22:21:52.000000000 +0000 +++ luacheck-0.25.0/docsrc/cli.rst 2021-08-10 15:19:20.000000000 +0000 @@ -78,6 +78,8 @@ * ``lua52c`` - globals of Lua 5.2 compiled with LUA_COMPAT_ALL; * ``lua53`` - globals of Lua 5.3; * ``lua53c`` - globals of Lua 5.3 compiled with LUA_COMPAT_5_2; + * ``lua54`` - globals of Lua 5.4; + * ``lua54c`` - globals of Lua 5.4 compiled with LUA_COMPAT_5_3; * ``luajit`` - globals of LuaJIT 2.x; * ``ngx_lua`` - globals of Openresty `lua-nginx-module `_ 0.10.10, including standard LuaJIT 2.x globals; * ``love`` - globals added by `LÖVE `_; diff -Nru luacheck-0.24.0/docsrc/conf.py luacheck-0.25.0/docsrc/conf.py --- luacheck-0.24.0/docsrc/conf.py 2020-08-20 22:21:52.000000000 +0000 +++ luacheck-0.25.0/docsrc/conf.py 2021-08-10 15:19:20.000000000 +0000 @@ -48,9 +48,9 @@ # built documents. # # The short X.Y version. -version = '0.24.0' +version = '0.25.0' # The full version, including alpha/beta/rc tags. -release = '0.24.0' +release = '0.25.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff -Nru luacheck-0.24.0/docsrc/index.rst luacheck-0.25.0/docsrc/index.rst --- luacheck-0.24.0/docsrc/index.rst 2020-08-20 22:21:52.000000000 +0000 +++ luacheck-0.25.0/docsrc/index.rst 2021-08-10 15:19:20.000000000 +0000 @@ -11,4 +11,4 @@ inline module -This is documentation for 0.24.0 version of `Luacheck `_, a linter for `Lua `_. +This is documentation for 0.25.0 version of `Luacheck `_, a linter for `Lua `_. diff -Nru luacheck-0.24.0/README.md luacheck-0.25.0/README.md --- luacheck-0.24.0/README.md 2020-08-20 22:21:52.000000000 +0000 +++ luacheck-0.25.0/README.md 2021-08-10 15:19:20.000000000 +0000 @@ -39,7 +39,7 @@ ### Windows binary download For Windows there is single-file 64-bit binary distribution, bundling Lua 5.3.4, Luacheck, LuaFileSystem, and LuaLanes using [LuaStatic](https://github.com/ers35/luastatic): -[download](https://github.com/luarocks/luacheck/releases/download/0.24.0/luacheck.exe). +[download](https://github.com/luarocks/luacheck/releases/download/0.25.0/luacheck.exe). ## Basic usage @@ -107,7 +107,7 @@ ## Development -Luacheck is currently in development. The latest released version is 0.24.0. The interface of the `luacheck` module may change between minor releases. The command line interface is fairly stable. +Luacheck is currently in development. The latest released version is 0.25.0. The interface of the `luacheck` module may change between minor releases. The command line interface is fairly stable. Use the Luacheck issue tracker on GitHub to submit bugs, suggestions and questions. Any pull requests are welcome, too. diff -Nru luacheck-0.24.0/scripts/build-binaries.sh luacheck-0.25.0/scripts/build-binaries.sh --- luacheck-0.24.0/scripts/build-binaries.sh 2020-08-20 22:21:52.000000000 +0000 +++ luacheck-0.25.0/scripts/build-binaries.sh 2021-08-10 15:19:20.000000000 +0000 @@ -27,6 +27,6 @@ } build "Linux x86-64" LINUX=1 -build "Linux x86" LINUX=1 "BASE_CC=gcc -m32" SUFFIX=32 +#build "Linux x86" LINUX=1 "BASE_CC=gcc -m32" SUFFIX=32 build "Windows x86-64" CROSS=x86_64-w64-mingw32- SUFFIX=.exe build "Windows x86" CROSS=i686-w64-mingw32- SUFFIX=32.exe diff -Nru luacheck-0.24.0/spec/lexer_spec.lua luacheck-0.25.0/spec/lexer_spec.lua --- luacheck-0.24.0/spec/lexer_spec.lua 2020-08-20 22:21:52.000000000 +0000 +++ luacheck-0.25.0/spec/lexer_spec.lua 2021-08-10 15:19:20.000000000 +0000 @@ -176,8 +176,8 @@ assert.same({token = "string", token_value = "\240\144\128\128\244\143\191\191"}, get_token([["\u{10000}\u{10FFFF}"]])) assert.same( - {line = 1, offset = 2, end_offset = 10, msg = "invalid UTF-8 escape sequence '\\u{110000'"}, - get_error([["\u{110000}"]]) + {line = 1, offset = 2, end_offset = 13, msg = "invalid UTF-8 escape sequence '\\u{110000000'"}, + get_error([["\u{110000000}"]]) ) assert.same( {line = 1, offset = 2, end_offset = 4, msg = "invalid UTF-8 escape sequence '\\u\"'"}, diff -Nru luacheck-0.24.0/src/luacheck/builtin_standards/init.lua luacheck-0.25.0/src/luacheck/builtin_standards/init.lua --- luacheck-0.24.0/src/luacheck/builtin_standards/init.lua 2020-08-20 22:21:52.000000000 +0000 +++ luacheck-0.25.0/src/luacheck/builtin_standards/init.lua 2021-08-10 15:19:20.000000000 +0000 @@ -28,6 +28,7 @@ string_defs.lua51 = add_defs(string_defs.min, standards.def_fields("gfind")) string_defs.lua52 = string_defs.min string_defs.lua53 = add_defs(string_defs.min, standards.def_fields("pack", "packsize", "unpack")) +string_defs.lua54 = string_defs.lua53 string_defs.luajit = string_defs.lua51 local file_defs = {} @@ -50,6 +51,7 @@ file_defs.lua51 = file_defs.min file_defs.lua52 = file_defs.min file_defs.lua53 = add_defs(file_defs.min, {fields = {__name = string_defs.lua53}}) +file_defs.lua54 = add_defs(file_defs.min, {fields = {__name = string_defs.lua54}}) file_defs.luajit = file_defs.min local function make_min_def(method_defs) @@ -221,6 +223,18 @@ math = standards.def_fields("atan2", "cosh", "frexp", "ldexp", "log10", "pow", "sinh", "tanh") } }) +lua_defs.lua54 = add_defs(lua_defs.lua53, { + fields = { + warn = empty, + debug = standards.def_fields("setcstacklimit"), + coroutine = standards.def_fields("close"), + } +}) +lua_defs.lua54c = add_defs(lua_defs.lua54, { + fields = { + math = standards.def_fields("atan2", "cosh", "frexp", "ldexp", "log10", "pow", "sinh", "tanh") + } +}) lua_defs.luajit = add_defs(make_min_def("luajit"), { fields = { bit = standards.def_fields("arshift", "band", "bnot", "bor", "bswap", "bxor", "lshift", "rol", "ror", @@ -247,7 +261,7 @@ } }) lua_defs.ngx_lua = add_defs(lua_defs.luajit, ngx) -lua_defs.max = add_defs(lua_defs.lua51c, lua_defs.lua52c, lua_defs.lua53c, lua_defs.luajit) +lua_defs.max = add_defs(lua_defs.lua51c, lua_defs.lua52c, lua_defs.lua53c, lua_defs.lua54c, lua_defs.luajit) for name, def in pairs(lua_defs) do builtin_standards[name] = def_to_std(def) @@ -262,6 +276,8 @@ return "lua52c" elseif _VERSION == "Lua 5.3" then return "lua53c" + elseif _VERSION == "Lua 5.4" then + return "lua54c" else return "max" end diff -Nru luacheck-0.24.0/src/luacheck/init.lua luacheck-0.25.0/src/luacheck/init.lua --- luacheck-0.24.0/src/luacheck/init.lua 2020-08-20 22:21:52.000000000 +0000 +++ luacheck-0.25.0/src/luacheck/init.lua 2021-08-10 15:19:20.000000000 +0000 @@ -5,7 +5,7 @@ local utils = require "luacheck.utils" local luacheck = { - _VERSION = "0.23.0" + _VERSION = "0.25.0" } local function raw_validate_options(fname, opts, stds, context) diff -Nru luacheck-0.24.0/src/luacheck/lexer.lua luacheck-0.25.0/src/luacheck/lexer.lua --- luacheck-0.24.0/src/luacheck/lexer.lua 2020-08-20 22:21:52.000000000 +0000 +++ luacheck-0.25.0/src/luacheck/lexer.lua 2021-08-10 15:19:20.000000000 +0000 @@ -1,6 +1,6 @@ local utils = require "luacheck.utils" --- Lexer should support syntax of Lua 5.1, Lua 5.2, Lua 5.3 and LuaJIT(64bit and complex cdata literals). +-- Lexer should support syntax of Lua 5.1, Lua 5.2, Lua 5.3, Lua 5.4 and LuaJIT(64bit and complex cdata literals). local lexer = {} local sbyte = string.byte @@ -285,7 +285,7 @@ hexdigits = hexdigits + 1 codepoint = codepoint*16 + hex - if codepoint > 0x10FFFF then + if codepoint > 0x7FFFFFFF then -- UTF-8 value too large. return nil, "invalid UTF-8 escape sequence", -hexdigits-3 end diff -Nru luacheck-0.24.0/src/luacheck/main.lua luacheck-0.25.0/src/luacheck/main.lua --- luacheck-0.24.0/src/luacheck/main.lua 2020-08-20 22:21:52.000000000 +0000 +++ luacheck-0.25.0/src/luacheck/main.lua 2021-08-10 15:19:20.000000000 +0000 @@ -81,6 +81,8 @@ " lua52c - globals of Lua 5.2 with LUA_COMPAT_ALL;\n" .. " lua53 - globals of Lua 5.3;\n" .. " lua53c - globals of Lua 5.3 with LUA_COMPAT_5_2;\n" .. + " lua54 - globals of Lua 5.4;\n" .. + " lua54c - globals of Lua 5.4 with LUA_COMPAT_5_3;\n" .. " luajit - globals of LuaJIT 2.x;\n" .. " ngx_lua - globals of Openresty lua-nginx-module 0.10.10, including standard LuaJIT 2.x globals;\n" .. " love - globals added by LÖVE;\n" ..