chore: update Gleam

This commit is contained in:
Amaan Qureshi 2023-05-29 11:13:36 -04:00 committed by GitHub
parent 1d670b0c90
commit 754b509f26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 2 additions and 30 deletions

View file

@ -29,7 +29,7 @@ jobs:
- name: Update parsers
env:
SKIP_LOCKFILE_UPDATE_FOR_LANGS: verilog,gleam,nix
SKIP_LOCKFILE_UPDATE_FOR_LANGS: verilog,nix
run: |
cp lockfile.json /tmp/old_lockfile.json
./nvim.appimage --headless -c "luafile ./scripts/write-lockfile.lua" -c "q"

View file

@ -162,7 +162,7 @@
"revision": "f4685bf11ac466dd278449bcfe5fd014e94aa504"
},
"gleam": {
"revision": "ae79782c00656945db69641378e688cdb78d52c1"
"revision": "2d5d6b001ba12bf1c7ac94679d69ac2bed3151dc"
},
"glimmer": {
"revision": "d3031a8294bf331600d5046b1d14e690a0d8ba0c"

View file

@ -27,7 +27,6 @@
; Exceptions
[
"assert"
"try"
] @exception
; Punctuation

View file

@ -16,7 +16,6 @@
(type_definition)
(type_alias)
(todo)
(try)
(tuple)
] @indent.begin

View file

@ -1,7 +0,0 @@
pub fn main() {
try int_a =
parse_int(a)
try int_b =
parse_int(b)
Ok(int_a + int_b)
}

View file

@ -105,14 +105,6 @@ describe("indent Gleam:", function()
run:new_line("constant.gleam", { on_line = 1, text = "//", indent = 2 })
run:new_line("constant.gleam", { on_line = 2, text = "//", indent = 2 })
run:new_line("try.gleam", { on_line = 1, text = "//", indent = 2 })
run:new_line("try.gleam", { on_line = 2, text = "//", indent = 4 })
run:new_line("try.gleam", { on_line = 3, text = "//", indent = 2 })
run:new_line("try.gleam", { on_line = 4, text = "//", indent = 4 })
run:new_line("try.gleam", { on_line = 5, text = "//", indent = 2 })
run:new_line("try.gleam", { on_line = 6, text = "//", indent = 2 })
run:new_line("try.gleam", { on_line = 7, text = "//", indent = 0 })
run:new_line("assert.gleam", { on_line = 1, text = "//", indent = 2 })
run:new_line("assert.gleam", { on_line = 2, text = "//", indent = 4 })
run:new_line("assert.gleam", { on_line = 3, text = "//", indent = 2 })

View file

@ -1,11 +0,0 @@
pub fn main() {
try x = Ok(1)
// <- exception
// ^ variable
// ^ operator
// ^^ constant.builtin
// ^ punctuation.bracket
// ^ number
// ^ punctuation.bracket
Ok(x + 1)
}