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/ebnf | |
| 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/ebnf')
| -rw-r--r-- | queries/ebnf/highlights.scm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/queries/ebnf/highlights.scm b/queries/ebnf/highlights.scm index 416aaab68..feafa1cef 100644 --- a/queries/ebnf/highlights.scm +++ b/queries/ebnf/highlights.scm @@ -11,13 +11,13 @@ ; Allow different highlighting for specific casings ((identifier) @type - (#match? @type "^[A-Z]")) + (#lua-match? @type "^%u")) ((identifier) @symbol - (#match? @symbol "^[a-z]")) + (#lua-match? @symbol "^%l")) ((identifier) @constant - (#match? @constant "^[A-Z][A-Z0-9_]+$")) + (#lua-match? @constant "^%u[%u%d_]+$")) ;;; Punctuation ;;;; [ |
