1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-06-16 18:19:55 +00:00

Update Cobalt to 0.7.3

- Add support for Lua 5.2's %g.
 - Fix %p for the upper character ranges.
This commit is contained in:
Jonathan Coates 2023-08-27 15:35:36 +01:00
parent 500406f9eb
commit 6dfdeb9321
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06
3 changed files with 9 additions and 13 deletions

View File

@ -19,8 +19,8 @@ parchmentMc = "1.19.4"
asm = "9.3" asm = "9.3"
autoService = "1.0.1" autoService = "1.0.1"
checkerFramework = "3.32.0" checkerFramework = "3.32.0"
cobalt = "0.7.2" cobalt = "0.7.3"
cobalt-next = "0.7.3" # Not a real version, used to constrain the version we accept. cobalt-next = "0.7.4" # Not a real version, used to constrain the version we accept.
fastutil = "8.5.9" fastutil = "8.5.9"
guava = "31.1-jre" guava = "31.1-jre"
jetbrainsAnnotations = "24.0.1" jetbrainsAnnotations = "24.0.1"

View File

@ -83,23 +83,19 @@
;; isn't smart enough. ;; isn't smart enough.
sleep write printError read rs))) sleep write printError read rs)))
;; We disable the unused global linter in bios.lua and the APIs. In the future ;; We disable the unused global linter in bios.lua, APIs and our documentation
;; hopefully we'll get illuaminate to handle this. ;; stubs docs. In the future hopefully we'll get illuaminate to handle this.
(at (at
(/projects/core/src/main/resources/data/computercraft/lua/bios.lua (/doc/stub/
/projects/core/src/main/resources/data/computercraft/lua/rom/apis/) /projects/core/src/main/resources/data/computercraft/lua/bios.lua
(linters -var:unused-global) /projects/core/src/main/resources/data/computercraft/lua/rom/apis/
(lint (allow-toplevel-global true))) /projects/forge/build/docs/luaJavadoc/)
;; Silence some variable warnings in documentation stubs.
(at (/doc/stub/ /projects/forge/build/docs/luaJavadoc/)
(linters -var:unused-global) (linters -var:unused-global)
(lint (allow-toplevel-global true))) (lint (allow-toplevel-global true)))
;; Suppress warnings for currently undocumented modules. ;; Suppress warnings for currently undocumented modules.
(at (at
(; Lua APIs (; Lua APIs
/projects/core/src/main/resources/data/computercraft/lua/rom/apis/io.lua
/projects/core/src/main/resources/data/computercraft/lua/rom/apis/window.lua) /projects/core/src/main/resources/data/computercraft/lua/rom/apis/window.lua)
(linters -doc:undocumented -doc:undocumented-arg -doc:undocumented-return)) (linters -doc:undocumented -doc:undocumented-arg -doc:undocumented-return))

View File

@ -165,7 +165,7 @@ local function make_decoder()
local low_pass_charge = 0 local low_pass_charge = 0
local previous_charge, previous_bit = 0, false local previous_charge, previous_bit = 0, false
return function (input, output) return function (input)
expect(1, input, "string") expect(1, input, "string")
local output, output_n = {}, 0 local output, output_n = {}, 0