diff options
| author | Uy Ha <hchanuy@gmail.com> | 2023-02-28 02:11:09 +0100 |
|---|---|---|
| committer | Amaan Qureshi <amaanq12@gmail.com> | 2023-02-27 20:23:53 -0500 |
| commit | e2a9fc8e5c15e1be1b9ce1210d2b2667707d1ae5 (patch) | |
| tree | e8b91e067c36ec192bdf74e705229225d86529df /queries/cmake | |
| parent | feat: add yuck (diff) | |
| download | nvim-treesitter-e2a9fc8e5c15e1be1b9ce1210d2b2667707d1ae5.tar nvim-treesitter-e2a9fc8e5c15e1be1b9ce1210d2b2667707d1ae5.tar.gz nvim-treesitter-e2a9fc8e5c15e1be1b9ce1210d2b2667707d1ae5.tar.bz2 nvim-treesitter-e2a9fc8e5c15e1be1b9ce1210d2b2667707d1ae5.tar.lz nvim-treesitter-e2a9fc8e5c15e1be1b9ce1210d2b2667707d1ae5.tar.xz nvim-treesitter-e2a9fc8e5c15e1be1b9ce1210d2b2667707d1ae5.tar.zst nvim-treesitter-e2a9fc8e5c15e1be1b9ce1210d2b2667707d1ae5.zip | |
use lua-match where possible
Diffstat (limited to 'queries/cmake')
| -rw-r--r-- | queries/cmake/highlights.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/queries/cmake/highlights.scm b/queries/cmake/highlights.scm index 8a471fd1c..055319978 100644 --- a/queries/cmake/highlights.scm +++ b/queries/cmake/highlights.scm @@ -1,7 +1,7 @@ (normal_command (identifier) (argument (unquoted_argument)) @constant - (#match? @constant "^[A-Z][A-Z_]+$") + (#lua-match? @constant "^%u[%u_]+$") ) [ @@ -186,4 +186,4 @@ (escape_sequence) @string.escape ((source_file . (line_comment) @preproc) - (#match? @preproc "^#!/")) + (#lua-match? @preproc "^#!/")) |
