Thankyou, this all makes sense. I do think it would be nice if it was easier to somehow
add user customizations to the font-locking, especially since it is so easy to write tree-sitter
font-locking rules.
> We just don’t want a central tree-sitter-font-lock-feature-list that controls
the feature list of every major mode in a single place.
What would you think of something like a `user` feature that could be enabled
globally and users could add their mode-specific rules there? Eg.
(defvar my-treesit-font-lock-rules
(treesit-font-lock-rules
:language 'go
:feature 'user
'((identifier))
:language 'typescript
:feature 'user
'((identifier))
;; ...
))
This wouldn't work very well in certain cases where ordering of the rules
was important, however.