fix(gleam): remove incorrect builtin highlight (#6757)

This commit is contained in:
Louis Pilfold 2024-06-17 15:23:06 +01:00 committed by GitHub
parent f7edd3f5f6
commit 09953e394b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 13 deletions

View file

@ -147,9 +147,6 @@
(type_var)
] @type
((type_identifier) @type.builtin
(#any-of? @type.builtin "Int" "Float" "String" "List"))
; Type Qualifiers
[
"const"

View file

@ -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

View file

@ -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
}