mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(gleam,luau): use @keyword.type captures (#7181)
This commit is contained in:
parent
a1b791604b
commit
679883ad31
3 changed files with 8 additions and 8 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue