aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python
diff options
context:
space:
mode:
authorSteven Sojka <steelsojka@gmail.com>2020-08-16 11:24:10 -0500
committerKiyan Yazdani <yazdani.kiyan@protonmail.com>2020-08-16 18:31:56 +0200
commitce43dbf54cdc017e6885381f38ea056f78c4e55b (patch)
tree27a4e0475002d2e3845e942cab8d57aeea679bff /queries/python
parentMerge pull request #296 from steelsojka/feat-is-predicate (diff)
downloadnvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar
nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.gz
nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.bz2
nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.lz
nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.xz
nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.zst
nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.zip
fix(queries): use vim-match for non lua regexes
Diffstat (limited to 'queries/python')
-rw-r--r--queries/python/highlights.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm
index e65a58aee..8bac99e50 100644
--- a/queries/python/highlights.scm
+++ b/queries/python/highlights.scm
@@ -43,7 +43,7 @@
((call
function: (identifier) @function.builtin)
- (match?
+ (vim-match?
@function.builtin
"^(abs|all|any|ascii|bin|bool|breakpoint|bytearray|bytes|callable|chr|classmethod|compile|complex|delattr|dict|dir|divmod|enumerate|eval|exec|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|isinstance|issubclass|iter|len|list|locals|map|max|memoryview|min|next|object|oct|open|ord|pow|print|property|range|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|vars|zip|__import__)$"))
@@ -63,7 +63,7 @@
parameters: (parameters
(identifier) @self) )
(eq? @self "self")
- (match? @constructor "(__new__|__init__)"))
+ (vim-match? @constructor "(__new__|__init__)"))
(type (identifier) @type)
(type