aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python
diff options
context:
space:
mode:
authorSteven Sojka <steelsojka@users.noreply.github.com>2020-08-18 10:38:06 -0500
committerGitHub <noreply@github.com>2020-08-18 10:38:06 -0500
commit393900b38702caf2add60e1b5d1177431ad1c24f (patch)
treea4b796ce23a5c299dfed933aa6901d4217f679c5 /queries/python
parentMerge pull request #323 from nathunsmitty/master (diff)
parentPython: fix some highlights (diff)
downloadnvim-treesitter-393900b38702caf2add60e1b5d1177431ad1c24f.tar
nvim-treesitter-393900b38702caf2add60e1b5d1177431ad1c24f.tar.gz
nvim-treesitter-393900b38702caf2add60e1b5d1177431ad1c24f.tar.bz2
nvim-treesitter-393900b38702caf2add60e1b5d1177431ad1c24f.tar.lz
nvim-treesitter-393900b38702caf2add60e1b5d1177431ad1c24f.tar.xz
nvim-treesitter-393900b38702caf2add60e1b5d1177431ad1c24f.tar.zst
nvim-treesitter-393900b38702caf2add60e1b5d1177431ad1c24f.zip
Merge pull request #324 from stsewd/python-fix
Python: fix some highlights
Diffstat (limited to 'queries/python')
-rw-r--r--queries/python/highlights.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm
index 93489a446..44230a3e2 100644
--- a/queries/python/highlights.scm
+++ b/queries/python/highlights.scm
@@ -20,7 +20,7 @@
((attribute
attribute: (identifier) @field)
- (#match? @field "^([A-Z])@!.*$"))
+ (#vim-match? @field "^([A-Z])@!.*$"))
((identifier) @type.builtin
(#vim-match? @type.builtin
@@ -31,7 +31,7 @@
(decorator) @function
((decorator (dotted_name (identifier) @function))
- (#match? @function "^([A-Z])@!.*$"))
+ (#vim-match? @function "^([A-Z])@!.*$"))
(call
function: (identifier) @function)
@@ -213,7 +213,7 @@
(assignment
left: (expression_list
(identifier) @field)))))
- (#match? @field "^([A-Z])@!.*$"))
+ (#vim-match? @field "^([A-Z])@!.*$"))
((class_definition
(block