mirror of
https://github.com/nvim-treesitter/nvim-treesitter
synced 2024-09-16 14:34:05 +02:00
fix(gleam): remove incorrect builtin highlight (#6757)
This commit is contained in:
parent
f7edd3f5f6
commit
09953e394b
3 changed files with 10 additions and 13 deletions
|
@ -147,9 +147,6 @@
|
|||
(type_var)
|
||||
] @type
|
||||
|
||||
((type_identifier) @type.builtin
|
||||
(#any-of? @type.builtin "Int" "Float" "String" "List"))
|
||||
|
||||
; Type Qualifiers
|
||||
[
|
||||
"const"
|
||||
|
|
|
@ -5,14 +5,14 @@ pub fn add(x: Int, y: Int) -> Int {
|
|||
// ^ @punctuation.bracket
|
||||
// ^ @variable.parameter
|
||||
// ^ @punctuation.delimiter
|
||||
// ^^^ @type.builtin
|
||||
// ^^^ @type
|
||||
// ^ @punctuation.delimiter
|
||||
// ^ @variable.parameter
|
||||
// ^ @punctuation.delimiter
|
||||
// ^^^ @type.builtin
|
||||
// ^^^ @type
|
||||
// ^ @punctuation.bracket
|
||||
// ^ @punctuation.delimiter
|
||||
// ^^^ @type.builtin
|
||||
// ^^^ @type
|
||||
// ^ @punctuation.bracket
|
||||
}
|
||||
// <- @punctuation.bracket
|
||||
|
@ -50,7 +50,7 @@ fn list_of_two(my_value: a) -> List(a) {
|
|||
// ^ @type
|
||||
// ^ @punctuation.bracket
|
||||
// ^ @punctuation.delimiter
|
||||
// ^^^^ @type.builtin
|
||||
// ^^^^ @type
|
||||
// ^ @punctuation.bracket
|
||||
// ^ @type
|
||||
// ^ @punctuation.bracket
|
||||
|
@ -66,19 +66,19 @@ fn replace(
|
|||
// <- @label
|
||||
// ^^^^^^ @variable.parameter
|
||||
// ^ @punctuation.delimiter
|
||||
// ^^^^^^ @type.builtin
|
||||
// ^^^^^^ @type
|
||||
// ^ @punctuation.delimiter
|
||||
each pattern: String,
|
||||
// <- @label
|
||||
// ^^^^^^^ @variable.parameter
|
||||
// ^ @punctuation.delimiter
|
||||
// ^^^^^^ @type.builtin
|
||||
// ^^^^^^ @type
|
||||
// ^ @punctuation.delimiter
|
||||
with replacement: String,
|
||||
// <- @label
|
||||
// ^^^^^^^^^^^ @variable.parameter
|
||||
// ^ @punctuation.delimiter
|
||||
// ^^^^^^ @type.builtin
|
||||
// ^^^^^^ @type
|
||||
// ^ @punctuation.delimiter
|
||||
) {
|
||||
replace(in: "A,B,C", each: ",", with: " ")
|
||||
|
@ -107,7 +107,7 @@ pub external fn random_float() -> Float = "rand" "uniform"
|
|||
// ^ @punctuation.bracket
|
||||
// ^ @punctuation.bracket
|
||||
// ^^ @punctuation.delimiter
|
||||
// ^^^^^ @type.builtin
|
||||
// ^^^^^ @type
|
||||
// ^ @operator
|
||||
// ^^^^^^ @module
|
||||
// ^^^^^^^^^ @function
|
||||
|
|
|
@ -8,11 +8,11 @@ pub type Cat {
|
|||
// ^ @punctuation.bracket
|
||||
// ^^^^ @variable.member
|
||||
// ^ @punctuation.delimiter
|
||||
// ^^^^^^ @type.builtin
|
||||
// ^^^^^^ @type
|
||||
// ^ @punctuation.delimiter
|
||||
// ^^^^^^^^ @variable.member
|
||||
// ^ @punctuation.delimiter
|
||||
// ^^^ @type.builtin
|
||||
// ^^^ @type
|
||||
// ^ @punctuation.bracket
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue