diff options
| author | Amaan Qureshi <amaanq12@gmail.com> | 2023-04-21 04:06:20 -0400 |
|---|---|---|
| committer | Amaan Qureshi <amaanq12@gmail.com> | 2023-04-21 18:24:17 -0400 |
| commit | 85330918f05b3a4bd342a69063e7ef5fcdfadd2e (patch) | |
| tree | 6b38f8e3af9ad1079ba94ffc7056263b056d0c00 /queries/dart | |
| parent | fix(c): types are optional in sized_type_specifier (diff) | |
| download | nvim-treesitter-85330918f05b3a4bd342a69063e7ef5fcdfadd2e.tar nvim-treesitter-85330918f05b3a4bd342a69063e7ef5fcdfadd2e.tar.gz nvim-treesitter-85330918f05b3a4bd342a69063e7ef5fcdfadd2e.tar.bz2 nvim-treesitter-85330918f05b3a4bd342a69063e7ef5fcdfadd2e.tar.lz nvim-treesitter-85330918f05b3a4bd342a69063e7ef5fcdfadd2e.tar.xz nvim-treesitter-85330918f05b3a4bd342a69063e7ef5fcdfadd2e.tar.zst nvim-treesitter-85330918f05b3a4bd342a69063e7ef5fcdfadd2e.zip | |
perf: remove match where possible
Diffstat (limited to 'queries/dart')
| -rw-r--r-- | queries/dart/highlights.scm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/queries/dart/highlights.scm b/queries/dart/highlights.scm index e34467f65..372a6389c 100644 --- a/queries/dart/highlights.scm +++ b/queries/dart/highlights.scm @@ -11,7 +11,7 @@ ; NOTE: This query is a bit of a work around for the fact that the dart grammar doesn't ; specifically identify a node as a function call -(((identifier) @function (#match? @function "^_?[a-z]")) +(((identifier) @function (#lua-match? @function "^_?[%l]")) . (selector . (argument_part))) @function ; Annotations @@ -100,7 +100,7 @@ ((scoped_identifier scope: (identifier) @type name: (identifier) @type) - (#match? @type "^[a-zA-Z]")) + (#lua-match? @type "^[%u%l]")) (type_identifier) @type @@ -113,7 +113,7 @@ (inferred_type) @keyword ((identifier) @type - (#match? @type "^_?[A-Z].*[a-z]")) ; catch Classes or IClasses not CLASSES + (#lua-match? @type "^_?[%u].*[%l]")) ; catch Classes or IClasses not CLASSES ("Function" @type) |
