feat(gleam,luau): use @keyword.type captures (#7181)

This commit is contained in:
Riley Bruins 2024-09-26 00:09:41 -07:00 committed by GitHub
parent a1b791604b
commit 679883ad31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 8 deletions

View file

@ -4,10 +4,11 @@
"let"
"panic"
"todo"
"type"
"use"
] @keyword
"type" @keyword.type
; Function Keywords
"fn" @keyword.function

View file

@ -4,10 +4,9 @@
; Keywords
"return" @keyword.return
[
"local"
"type"
] @keyword
"local" @keyword
"type" @keyword.type
"export" @keyword.import

View file

@ -1,6 +1,6 @@
pub type Cat {
// <- @keyword.modifier
// ^^^^ @keyword
// ^^^^ @keyword.type
// ^^^ @type
// ^ @punctuation.bracket
Cat(name: String, cuteness: Int)
@ -38,7 +38,7 @@ fn cats() {
}
type Box(inner_type) {
// <- @keyword
// <- @keyword.type
// ^^^ @type
// ^ @punctuation.bracket
// ^^^^^^^^^^ @type
@ -56,7 +56,7 @@ type Box(inner_type) {
pub opaque type Counter {
// <- @keyword.modifier
// ^^^^^^ @keyword.modifier
// ^^^^ @keyword
// ^^^^ @keyword.type
// ^^^^^^^ @type
// ^ @punctuation.bracket
Counter(value: Int)