mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 10:20:11 -04:00
fix(gleam): update tests reflecting recent changes
This commit is contained in:
parent
c8c083e8ce
commit
4a4c475617
6 changed files with 103 additions and 102 deletions
|
|
@ -1,18 +1,18 @@
|
|||
pub fn add(x: Int, y: Int) -> Int {
|
||||
// <- type.qualifier
|
||||
// ^ keyword.function
|
||||
// ^ function
|
||||
// ^^ keyword.function
|
||||
// ^^^ function
|
||||
// ^ punctuation.bracket
|
||||
// ^ parameter
|
||||
// ^ parameter
|
||||
// ^ type
|
||||
// ^ punctuation.delimiter
|
||||
// ^^^ type.builtin
|
||||
// ^ punctuation.delimiter
|
||||
// ^ parameter
|
||||
// ^ parameter
|
||||
// ^ type
|
||||
// ^ punctuation.delimiter
|
||||
// ^^^ type.builtin
|
||||
// ^ punctuation.bracket
|
||||
// ^ operator
|
||||
// ^ type
|
||||
// ^ punctuation.delimiter
|
||||
// ^^^ type.builtin
|
||||
// ^ punctuation.bracket
|
||||
}
|
||||
// <- punctuation.bracket
|
||||
|
|
@ -20,22 +20,22 @@ pub fn add(x: Int, y: Int) -> Int {
|
|||
pub fn twice(f: fn(t) -> t, x: t) -> t {
|
||||
// <- type.qualifier
|
||||
// ^ keyword.function
|
||||
// ^ function
|
||||
// ^^^^^ function
|
||||
// ^ punctuation.bracket
|
||||
// ^ parameter
|
||||
// ^ parameter
|
||||
// ^ keyword.function
|
||||
// ^ punctuation.delimiter
|
||||
// ^^ keyword.function
|
||||
// ^ punctuation.bracket
|
||||
// ^ type
|
||||
// ^ punctuation.bracket
|
||||
// ^ operator
|
||||
// ^^ punctuation.delimiter
|
||||
// ^ type
|
||||
// ^ punctuation.delimiter
|
||||
// ^ parameter
|
||||
// ^ parameter
|
||||
// ^ punctuation.delimiter
|
||||
// ^ type
|
||||
// ^ punctuation.bracket
|
||||
// ^ operator
|
||||
// ^^ punctuation.delimiter
|
||||
// ^ type
|
||||
// ^ punctuation.bracket
|
||||
}
|
||||
|
|
@ -46,11 +46,11 @@ fn list_of_two(my_value: a) -> List(a) {
|
|||
// ^ function
|
||||
// ^ punctuation.bracket
|
||||
// ^ parameter
|
||||
// ^ parameter
|
||||
// ^ punctuation.delimiter
|
||||
// ^ type
|
||||
// ^ punctuation.bracket
|
||||
// ^ operator
|
||||
// ^ type
|
||||
// ^ punctuation.delimiter
|
||||
// ^^^^ type.builtin
|
||||
// ^ punctuation.bracket
|
||||
// ^ type
|
||||
// ^ punctuation.bracket
|
||||
|
|
@ -60,68 +60,68 @@ fn list_of_two(my_value: a) -> List(a) {
|
|||
|
||||
fn replace(
|
||||
// <- keyword.function
|
||||
// ^ function
|
||||
// ^^^^^^^ function
|
||||
// ^ punctuation.bracket
|
||||
in string: String,
|
||||
// <- symbol
|
||||
// ^ parameter
|
||||
// ^ parameter
|
||||
// ^ type
|
||||
// <- label
|
||||
// ^^^^^^ parameter
|
||||
// ^ punctuation.delimiter
|
||||
// ^^^^^^ type.builtin
|
||||
// ^ punctuation.delimiter
|
||||
each pattern: String,
|
||||
// <- symbol
|
||||
// ^ parameter
|
||||
// ^ parameter
|
||||
// ^ type
|
||||
// <- label
|
||||
// ^^^^^^^ parameter
|
||||
// ^ punctuation.delimiter
|
||||
// ^^^^^^ type.builtin
|
||||
// ^ punctuation.delimiter
|
||||
with replacement: String,
|
||||
// <- symbol
|
||||
// ^ parameter
|
||||
// ^ parameter
|
||||
// ^ type
|
||||
// <- label
|
||||
// ^^^^^^^^^^^ parameter
|
||||
// ^ punctuation.delimiter
|
||||
// ^^^^^^ type.builtin
|
||||
// ^ punctuation.delimiter
|
||||
) {
|
||||
replace(in: "A,B,C", each: ",", with: " ")
|
||||
// <- function
|
||||
// <- function.call
|
||||
// ^ punctuation.bracket
|
||||
// ^ symbol
|
||||
// ^ symbol
|
||||
// ^ string
|
||||
// ^^ label
|
||||
// ^ punctuation.delimiter
|
||||
// ^^^^^^^ string
|
||||
// ^ punctuation.delimiter
|
||||
// ^ symbol
|
||||
// ^ symbol
|
||||
// ^ string
|
||||
// ^^^^ label
|
||||
// ^ punctuation.delimiter
|
||||
// ^^^ string
|
||||
// ^ punctuation.delimiter
|
||||
// ^ symbol
|
||||
// ^ symbol
|
||||
// ^ string
|
||||
// ^^^^ label
|
||||
// ^ punctuation.delimiter
|
||||
// ^^^ string
|
||||
// ^ punctuation.bracket
|
||||
}
|
||||
// <- punctuation.bracket
|
||||
|
||||
pub external fn random_float() -> Float = "rand" "uniform"
|
||||
// <- type.qualifier
|
||||
// ^ type.qualifier
|
||||
// ^ keyword.function
|
||||
// ^ function
|
||||
// ^^^^^^^^ type.qualifier
|
||||
// ^^ keyword.function
|
||||
// ^^^^^^^^^^^^ function
|
||||
// ^ punctuation.bracket
|
||||
// ^ punctuation.bracket
|
||||
// ^ operator
|
||||
// ^ type
|
||||
// ^^ punctuation.delimiter
|
||||
// ^^^^^ type.builtin
|
||||
// ^ operator
|
||||
// ^ namespace
|
||||
// ^ function
|
||||
// ^^^^^^ namespace
|
||||
// ^^^^^^^^^ function
|
||||
|
||||
pub external fn inspect(a) -> a = "Elixir.IO" "inspect"
|
||||
// <- type.qualifier
|
||||
// ^ type.qualifier
|
||||
// ^ keyword.function
|
||||
// ^ function
|
||||
// ^^^^^^^^ type.qualifier
|
||||
// ^^ keyword.function
|
||||
// ^^^^^^^ function
|
||||
// ^ punctuation.bracket
|
||||
// ^ type
|
||||
// ^ punctuation.bracket
|
||||
// ^ operator
|
||||
// ^^ punctuation.delimiter
|
||||
// ^ type
|
||||
// ^ operator
|
||||
// ^ namespace
|
||||
// ^ function
|
||||
// ^^^^^^^^^^^ namespace
|
||||
// ^^^^^^^^^ function
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue