highlights(gleam): use more specific groups

This commit is contained in:
ObserverOfTime 2022-10-22 16:52:46 +03:00
parent 7c86e6ffc4
commit 276627849b
3 changed files with 21 additions and 17 deletions

View file

@ -1,5 +1,5 @@
pub fn add(x: Int, y: Int) -> Int {
// <- keyword
// <- type.qualifier
// ^ keyword.function
// ^ function
// ^ punctuation.bracket
@ -18,7 +18,7 @@ pub fn add(x: Int, y: Int) -> Int {
// <- punctuation.bracket
pub fn twice(f: fn(t) -> t, x: t) -> t {
// <- keyword
// <- type.qualifier
// ^ keyword.function
// ^ function
// ^ punctuation.bracket
@ -100,8 +100,8 @@ fn replace(
// <- punctuation.bracket
pub external fn random_float() -> Float = "rand" "uniform"
// <- keyword
// ^ keyword
// <- type.qualifier
// ^ type.qualifier
// ^ keyword.function
// ^ function
// ^ punctuation.bracket
@ -113,8 +113,8 @@ pub external fn random_float() -> Float = "rand" "uniform"
// ^ function
pub external fn inspect(a) -> a = "Elixir.IO" "inspect"
// <- keyword
// ^ keyword
// <- type.qualifier
// ^ type.qualifier
// ^ keyword.function
// ^ function
// ^ punctuation.bracket

View file

@ -1,5 +1,5 @@
pub type Cat {
// <- keyword
// <- type.qualifier
// ^ keyword.function
// ^ type
// ^ punctuation.bracket
@ -53,8 +53,8 @@ type Box(inner_type) {
}
pub opaque type Counter {
// <- keyword
// ^ keyword
// <- type.qualifier
// ^ type.qualifier
// ^ keyword.function
// ^ type
// ^ punctuation.bracket