mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -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"
|
||||
"panic"
|
||||
"todo"
|
||||
"type"
|
||||
"use"
|
||||
] @keyword
|
||||
|
||||
"type" @keyword.type
|
||||
|
||||
; Function Keywords
|
||||
"fn" @keyword.function
|
||||
|
||||
|
|
|
|||
|
|
@ -4,10 +4,9 @@
|
|||
; Keywords
|
||||
"return" @keyword.return
|
||||
|
||||
[
|
||||
"local"
|
||||
"type"
|
||||
] @keyword
|
||||
"local" @keyword
|
||||
|
||||
"type" @keyword.type
|
||||
|
||||
"export" @keyword.import
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue