From 011ac894ec5b9e36563d8629fb7734f43ddb27a8 Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Thu, 18 Nov 2021 09:51:03 +0000 Subject: Prefer lua-match over match as string.find is much quicker than vim.regex:match* --- queries/python/injections.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'queries/python/injections.scm') diff --git a/queries/python/injections.scm b/queries/python/injections.scm index 197e725e..db966e6c 100644 --- a/queries/python/injections.scm +++ b/queries/python/injections.scm @@ -3,7 +3,7 @@ object: (identifier) @_re) arguments: (argument_list (string) @regex)) (#eq? @_re "re") - (#match? @regex "^r.*")) + (#lua-match? @regex "^r.*")) ; Module docstring ((module . (expression_statement (string) @rst)) -- cgit v1.2.3