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" "let"
"panic" "panic"
"todo" "todo"
"type"
"use" "use"
] @keyword ] @keyword
"type" @keyword.type
; Function Keywords ; Function Keywords
"fn" @keyword.function "fn" @keyword.function

View file

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

View file

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