mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
Added some more fixes to c# highlighting
This commit is contained in:
parent
d22e0dd865
commit
23a16ab605
1 changed files with 12 additions and 0 deletions
|
|
@ -2,6 +2,9 @@
|
||||||
(method_declaration
|
(method_declaration
|
||||||
name: (identifier) @method)
|
name: (identifier) @method)
|
||||||
|
|
||||||
|
(method_declaration
|
||||||
|
type: (identifier) @type)
|
||||||
|
|
||||||
; This would be nice but fails in some cases
|
; This would be nice but fails in some cases
|
||||||
; https://github.com/nvim-treesitter/nvim-treesitter/pull/203
|
; https://github.com/nvim-treesitter/nvim-treesitter/pull/203
|
||||||
; (invocation_expression
|
; (invocation_expression
|
||||||
|
|
@ -21,6 +24,10 @@
|
||||||
(parameter
|
(parameter
|
||||||
name: (identifier) @parameter))
|
name: (identifier) @parameter))
|
||||||
|
|
||||||
|
(parameter_list
|
||||||
|
(parameter
|
||||||
|
type: (identifier) @type))
|
||||||
|
|
||||||
(integer_literal) @number
|
(integer_literal) @number
|
||||||
(real_literal) @float
|
(real_literal) @float
|
||||||
|
|
||||||
|
|
@ -50,6 +57,9 @@
|
||||||
(property_declaration
|
(property_declaration
|
||||||
name: (identifier) @property)
|
name: (identifier) @property)
|
||||||
|
|
||||||
|
(catch_declaration
|
||||||
|
type: (identifier) @type)
|
||||||
|
|
||||||
(interface_declaration
|
(interface_declaration
|
||||||
name: (identifier) @type)
|
name: (identifier) @type)
|
||||||
(class_declaration
|
(class_declaration
|
||||||
|
|
@ -201,5 +211,7 @@
|
||||||
"interface"
|
"interface"
|
||||||
"namespace"
|
"namespace"
|
||||||
"struct"
|
"struct"
|
||||||
|
"get"
|
||||||
|
"set"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue