mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
chore: update Gleam
This commit is contained in:
parent
1d670b0c90
commit
754b509f26
7 changed files with 2 additions and 30 deletions
2
.github/workflows/update-lockfile.yml
vendored
2
.github/workflows/update-lockfile.yml
vendored
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@
|
|||
"revision": "f4685bf11ac466dd278449bcfe5fd014e94aa504"
|
||||
},
|
||||
"gleam": {
|
||||
"revision": "ae79782c00656945db69641378e688cdb78d52c1"
|
||||
"revision": "2d5d6b001ba12bf1c7ac94679d69ac2bed3151dc"
|
||||
},
|
||||
"glimmer": {
|
||||
"revision": "d3031a8294bf331600d5046b1d14e690a0d8ba0c"
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@
|
|||
; Exceptions
|
||||
[
|
||||
"assert"
|
||||
"try"
|
||||
] @exception
|
||||
|
||||
; Punctuation
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@
|
|||
(type_definition)
|
||||
(type_alias)
|
||||
(todo)
|
||||
(try)
|
||||
(tuple)
|
||||
] @indent.begin
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
pub fn main() {
|
||||
try int_a =
|
||||
parse_int(a)
|
||||
try int_b =
|
||||
parse_int(b)
|
||||
Ok(int_a + int_b)
|
||||
}
|
||||
|
|
@ -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 })
|
||||
|
|
|
|||
|
|
@ -1,11 +0,0 @@
|
|||
pub fn main() {
|
||||
try x = Ok(1)
|
||||
// <- exception
|
||||
// ^ variable
|
||||
// ^ operator
|
||||
// ^^ constant.builtin
|
||||
// ^ punctuation.bracket
|
||||
// ^ number
|
||||
// ^ punctuation.bracket
|
||||
Ok(x + 1)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue