mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 17:30:08 -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
|
|
@ -49,9 +49,6 @@
|
|||
(menu_item
|
||||
"item" @function.macro)
|
||||
|
||||
(template_definition
|
||||
(template_name_qualifier) @type.qualifier)
|
||||
|
||||
(import_statement
|
||||
(gobject_library) @module)
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
(slot) @type
|
||||
|
||||
(variation) @type.qualifier
|
||||
(variation) @attribute
|
||||
|
||||
(alias) @keyword.directive
|
||||
|
||||
|
|
|
|||
|
|
@ -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