mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 21:10:15 -04:00
highlights(hack): add keywords implements
This commit is contained in:
parent
cc0bdabe5f
commit
6a61461d18
4 changed files with 25 additions and 4 deletions
|
|
@ -21,6 +21,7 @@
|
|||
"await"
|
||||
"type"
|
||||
"interface"
|
||||
"implements"
|
||||
"class"
|
||||
"protected"
|
||||
"private"
|
||||
|
|
@ -32,7 +33,7 @@
|
|||
(xhp_modifier)
|
||||
(final_modifier)
|
||||
"extends"
|
||||
"insteadof"
|
||||
"insteadof"
|
||||
] @keyword
|
||||
|
||||
"use" @include
|
||||
|
|
@ -61,12 +62,20 @@
|
|||
"arraykey"
|
||||
"void"
|
||||
"nonnull"
|
||||
(null)
|
||||
"mixed"
|
||||
"dynamic"
|
||||
"noreturn"
|
||||
] @type.builtin
|
||||
|
||||
[
|
||||
(null)
|
||||
] @constant.builtin
|
||||
|
||||
[
|
||||
(true)
|
||||
(false)
|
||||
] @boolean
|
||||
|
||||
(type_specifier) @type
|
||||
(new_expression
|
||||
(_) @type)
|
||||
|
|
@ -83,7 +92,6 @@
|
|||
(qualified_identifier
|
||||
(identifier) @type .))
|
||||
|
||||
(function_type_specifier) @function
|
||||
(attribute_modifier) @attribute
|
||||
[
|
||||
"@required"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue