mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 18:30:06 -04:00
feat: more @keyword.type captures
This commit is contained in:
parent
f0a1a13316
commit
f58cae6c22
74 changed files with 395 additions and 239 deletions
|
|
@ -16,10 +16,7 @@
|
|||
[
|
||||
"use"
|
||||
"as"
|
||||
"class"
|
||||
"module"
|
||||
"interface"
|
||||
"type"
|
||||
"def"
|
||||
"attr_reader"
|
||||
"attr_writer"
|
||||
|
|
@ -28,6 +25,18 @@
|
|||
"alias"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"interface"
|
||||
"type"
|
||||
"class"
|
||||
] @keyword.type
|
||||
|
||||
(class_decl
|
||||
"end" @keyword.type)
|
||||
|
||||
(interface_decl
|
||||
"end" @keyword.type)
|
||||
|
||||
"def" @keyword.function
|
||||
|
||||
; Members of declaration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue