diff options
| author | ObserverOfTime <chronobserver@disroot.org> | 2023-08-23 14:09:30 +0300 |
|---|---|---|
| committer | ObserverOfTime <chronobserver@disroot.org> | 2023-08-23 16:57:18 +0300 |
| commit | 05fe2c38a3bd4f889ac13f1735685ab348d95346 (patch) | |
| tree | 5d8c5b65bf01c6a7fda66c552629eefe9994c356 /queries/clojure | |
| parent | Update parsers: ada, bash, java, matlab, wing (diff) | |
| download | nvim-treesitter-05fe2c38a3bd4f889ac13f1735685ab348d95346.tar nvim-treesitter-05fe2c38a3bd4f889ac13f1735685ab348d95346.tar.gz nvim-treesitter-05fe2c38a3bd4f889ac13f1735685ab348d95346.tar.bz2 nvim-treesitter-05fe2c38a3bd4f889ac13f1735685ab348d95346.tar.lz nvim-treesitter-05fe2c38a3bd4f889ac13f1735685ab348d95346.tar.xz nvim-treesitter-05fe2c38a3bd4f889ac13f1735685ab348d95346.tar.zst nvim-treesitter-05fe2c38a3bd4f889ac13f1735685ab348d95346.zip | |
refactor: replace some match & vim-match usages
Diffstat (limited to 'queries/clojure')
| -rw-r--r-- | queries/clojure/highlights.scm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/queries/clojure/highlights.scm b/queries/clojure/highlights.scm index d6b1585fd..08ca49b86 100644 --- a/queries/clojure/highlights.scm +++ b/queries/clojure/highlights.scm @@ -101,9 +101,9 @@ ; Interop ((sym_lit) @method - (#match? @method "^\\.[^-]")) + (#lua-match? @method "^[.][^-]")) ((sym_lit) @field - (#match? @field "^\\.-")) + (#lua-match? @field "^[.]-")) ((sym_lit) @field (#lua-match? @field "^[%u].*/.+")) (list_lit @@ -133,7 +133,7 @@ (#any-of? @keyword.coroutine "alts!" "alts!!" "await" "await-for" "await1" "chan" "close!" "future" "go" "sync" "thread" "timeout" "<!" "<!!" ">!" ">!!")) ((sym_lit) @keyword.function - (#match? @keyword.function "^(defn|defn-|fn|fn[*])$")) + (#any-of? @keyword.function "defn" "defn-" "fn" "fn*")) ; Comment ((sym_lit) @comment |
