diff options
| author | Lewis Russell <lewis6991@gmail.com> | 2021-11-18 09:51:03 +0000 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-11-23 10:02:06 +0100 |
| commit | 011ac894ec5b9e36563d8629fb7734f43ddb27a8 (patch) | |
| tree | de0b252b7705bfa4304c08cd389fed0814ae6f1c /queries/teal | |
| parent | 89fbb9b39e9ff4049c797397721d44facbd246df (diff) | |
Prefer lua-match over match
as string.find is much quicker than vim.regex:match*
Diffstat (limited to 'queries/teal')
| -rw-r--r-- | queries/teal/injections.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/queries/teal/injections.scm b/queries/teal/injections.scm index 5fceed10..f37f4d74 100644 --- a/queries/teal/injections.scm +++ b/queries/teal/injections.scm @@ -7,7 +7,7 @@ ) (#eq? @_cdef_identifier "cdef") - (#match? @c "^[\"']") + (#lua-match? @c "^[\"']") (#offset! @c 0 1 0 -1) ) @@ -20,7 +20,7 @@ ) (#eq? @_cdef_identifier "cdef") - (#match? @c "^\\[\\[") + (#lua-match? @c "^%[%[") (#offset! @c 0 2 0 -2) ) |
