mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
Python: fix some highlights
These aren't valid lua patterns
This commit is contained in:
parent
761faf23b7
commit
fe8d91b748
1 changed files with 3 additions and 3 deletions
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
((attribute
|
((attribute
|
||||||
attribute: (identifier) @field)
|
attribute: (identifier) @field)
|
||||||
(#match? @field "^([A-Z])@!.*$"))
|
(#vim-match? @field "^([A-Z])@!.*$"))
|
||||||
|
|
||||||
((identifier) @type.builtin
|
((identifier) @type.builtin
|
||||||
(#vim-match? @type.builtin
|
(#vim-match? @type.builtin
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
(decorator) @function
|
(decorator) @function
|
||||||
((decorator (dotted_name (identifier) @function))
|
((decorator (dotted_name (identifier) @function))
|
||||||
(#match? @function "^([A-Z])@!.*$"))
|
(#vim-match? @function "^([A-Z])@!.*$"))
|
||||||
|
|
||||||
(call
|
(call
|
||||||
function: (identifier) @function)
|
function: (identifier) @function)
|
||||||
|
|
@ -213,7 +213,7 @@
|
||||||
(assignment
|
(assignment
|
||||||
left: (expression_list
|
left: (expression_list
|
||||||
(identifier) @field)))))
|
(identifier) @field)))))
|
||||||
(#match? @field "^([A-Z])@!.*$"))
|
(#vim-match? @field "^([A-Z])@!.*$"))
|
||||||
|
|
||||||
((class_definition
|
((class_definition
|
||||||
(block
|
(block
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue