Timeline for How to highlight documentation comments with tree-sitter?
Current License: CC BY-SA 4.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 6, 2023 at 18:57 | comment | added | Rorschach | There really should be an easier way for users to customize the tree-sitter rules. I've also been accumulating a number of patches in my init files. Having a treesit-font-lock-feature-list entry devoted to user mods that gets applied in all modes might be useful. | |
| Aug 30, 2023 at 11:36 | comment | added | db48x | Yep. You could add a :filter-return advice that modifies the return value of the font lock settings. Either way, make sure you send your patch to the mailing list. | |
| Aug 30, 2023 at 3:09 | comment | added | ideasman42 | This means I need to maintain a copy of c-ts-mode--font-lock-settings in my init.el this is 163 lines on non-trivial elisp, with references to tree-sitter and c-ts-mode internals. Of course it can be done, but in that case I'd rather use a patched emacs. | |
| Aug 29, 2023 at 1:31 | history | answered | db48x | CC BY-SA 4.0 |