mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
feat(highlights)!: remove non-keyword @type.qualifier
* blueprint: Don't specially highlight template_name_qualifier. This is similar to inheritance base class. Other languages don't highlight them specially. * eds: `@type` for all `*Type` keys * chatito: `@attribute` for variation
This commit is contained in:
parent
dccf31f9b1
commit
5d75359a9a
4 changed files with 2 additions and 20 deletions
|
|
@ -27,21 +27,7 @@
|
|||
(section_name) @_name
|
||||
(statement
|
||||
(key) @_key) @type
|
||||
(#match? @_key "\\c^ObjectType$")
|
||||
(#not-match? @_name "\\c^Comments$"))
|
||||
|
||||
(section
|
||||
(section_name) @_name
|
||||
(statement
|
||||
(key) @_key) @type
|
||||
(#match? @_key "\\c^DataType$")
|
||||
(#not-match? @_name "\\c^Comments$"))
|
||||
|
||||
(section
|
||||
(section_name) @_name
|
||||
(statement
|
||||
(key) @_key) @type.qualifier
|
||||
(#match? @_key "\\c^AccessType$")
|
||||
(#match? @_key "\\c^(ObjectType|DataType|AccessType)$")
|
||||
(#not-match? @_name "\\c^Comments$"))
|
||||
|
||||
(section
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue