diff --git a/CHANGELOG.md b/CHANGELOG.md index f89b553..5119c15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ - Fix a bug in `clojure-ts-add-arity` when body has more than one expression. - [#120](https://github.com/clojure-emacs/clojure-ts-mode/issues/120): Fix a bug when symbols with metadata were not listed in imenu. - [#124](https://github.com/clojure-emacs/clojure-ts-mode/issues/124): Correctly indent lists that start with a keyword when using the `fixed` indentation style. +- [#127](https://github.com/clojure-emacs/clojure-ts-mode/issues/127): Fix performance issue for some valid Clojure expressions. ## 0.5.1 (2025-06-17) diff --git a/clojure-ts-mode.el b/clojure-ts-mode.el index 2dd73ad..31d84b7 100644 --- a/clojure-ts-mode.el +++ b/clojure-ts-mode.el @@ -535,8 +535,7 @@ captured including quotes." ((list_lit :anchor [(comment) (meta_lit) (old_meta_lit)] :* :anchor (sym_lit) @_def_symbol (list_lit :anchor (sym_lit) (vec_lit) :* - (str_lit (str_content) ,capture-symbol) ,quotes-symbol) - :*) + (str_lit (str_content) ,capture-symbol) ,quotes-symbol)) (:match ,clojure-ts--interface-def-symbol-regexp @_def_symbol))))) (defconst clojure-ts--match-docstring-query