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/tiger | |
| 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/tiger')
| -rw-r--r-- | queries/tiger/highlights.scm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/queries/tiger/highlights.scm b/queries/tiger/highlights.scm index f4256a34c..c0dd7dadf 100644 --- a/queries/tiger/highlights.scm +++ b/queries/tiger/highlights.scm @@ -1,19 +1,19 @@ ; Built-ins {{{ ((function_call function: (identifier) @function.builtin) - (#match? @function.builtin "^(chr|concat|exit|flush|getchar|not|ord|print|print_err|print_int|size|strcmp|streq|substring)$") + (#any-of? @function.builtin "chr" "concat" "exit" "flush" "getchar" "not" "ord" "print" "print_err" "print_int" "size" "strcmp" "streq" "substring") ; FIXME: not supported by neovim ; (#is-not? local) ) ((type_identifier) @type.builtin - (#match? @type.builtin "^(int|string|Object)$") + (#any-of? @type.builtin "int" "string" "Object") ; FIXME: not supported by neovim ; (#is-not? local) ) ((identifier) @variable.builtin - (#match? @variable.builtin "^self$") + (#eq? @variable.builtin "self") ; FIXME: not supported by neovim ; (#is-not? local) ) |
