Skip to content

Commit a2351c1

Browse files
committed
[#109] Fix performance issue by pre-compiling Tree-sitter queries
There is one trade-off: Markdown syntax won't be highlighted in docstrings of custom extra def forms. I think it could be solved, but it would make the code more complicated.
1 parent 8e57ba7 commit a2351c1

File tree

5 files changed

+423
-345
lines changed

5 files changed

+423
-345
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## main (unreleased)
44

5+
- [#109](https://github.com/clojure-emacs/clojure-ts-mode/issues/109): Improve performance by pre-compiling Tree-sitter queries.
6+
57
## 0.5.0 (2025-06-04)
68

79
- [#96](https://github.com/clojure-emacs/clojure-ts-mode/pull/96): Highlight function name properly in `extend-protocol` form.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,10 @@ and `clojure-mode` (this is very helpful when dealing with `derived-mode-p` chec
591591
- Navigation by sexp/lists might work differently on Emacs versions lower
592592
than 31. Starting with version 31, Emacs uses Tree-sitter 'things' settings, if
593593
available, to rebind some commands.
594+
- If you set `clojure-ts-extra-def-forms`, `clojure-ts-mode` will highlight the
595+
specified forms, including their docstrings, in a manner similar to Clojure's
596+
`defn`. However, Markdown syntax will not be highlighted within these custom
597+
docstrings.
594598

595599
## Frequently Asked Questions
596600

0 commit comments

Comments
 (0)