diff options
| author | Steven Sojka <steelsojka@gmail.com> | 2020-08-16 11:24:10 -0500 |
|---|---|---|
| committer | Kiyan Yazdani <yazdani.kiyan@protonmail.com> | 2020-08-16 18:31:56 +0200 |
| commit | ce43dbf54cdc017e6885381f38ea056f78c4e55b (patch) | |
| tree | 27a4e0475002d2e3845e942cab8d57aeea679bff /queries/javascript/highlights.scm | |
| parent | Merge pull request #296 from steelsojka/feat-is-predicate (diff) | |
| download | nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.gz nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.bz2 nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.lz nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.xz nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.zst nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.zip | |
fix(queries): use vim-match for non lua regexes
Diffstat (limited to 'queries/javascript/highlights.scm')
| -rw-r--r-- | queries/javascript/highlights.scm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/queries/javascript/highlights.scm b/queries/javascript/highlights.scm index 6cc7ab43d..e05cc4141 100644 --- a/queries/javascript/highlights.scm +++ b/queries/javascript/highlights.scm @@ -13,17 +13,17 @@ (identifier) @variable ((identifier) @constant - (#match? @constant "^[A-Z_][A-Z\\d_]+$")) + (#vim-match? @constant "^[A-Z_][A-Z\\d_]+$")) ((shorthand_property_identifier) @constant - (#match? @constant "^[A-Z_][A-Z\\d_]+$")) + (#vim-match? @constant "^[A-Z_][A-Z\\d_]+$")) ((identifier) @constructor (#match? @constructor "^[A-Z]")) ((identifier) @variable.builtin (#not-is? @variable.builtin import var parameter) - (#match? @variable.builtin "^(arguments|module|console|window|document)$")) + (#vim-match? @variable.builtin "^(arguments|module|console|window|document)$")) ((identifier) @function.builtin (#not-is? @function.builtin import var parameter) |
