-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No way to recognize additional function definition macros #15
Comments
Sort of related to:
FWIW, for janet-ts-mode there was a similar request:
So we did this. |
Yeah we're going to have to add something similar to janet-ts-mode. Once semantic indentation is in I think I would like to consolidate some of the regular expressions and add an extension mechanism. As for reading files, maybe reading cljfmt configuration files (based on the current project) would be worthwhile. See https://github.com/weavejester/cljfmt#configuration |
This also begins the process of making our symbol matching regular expressions user extensible (see issue #15). There are more to convert from regexps to normal lists, but I want to take my time and make sure I get the names down correctly. It is important to get maximum reuse so users don't have to add their fancy def-whatever to 4 different lists.
Libraries like https://github.com/gnl/ghostwheel have a macro
>defn
for defining functions, in one of my codebases i define>defn
myself, but it's implemented with malli.experimental/defnThere's no way to adjust clojure-ts-mode syntax highlighting without forking the repo, e.g.
There should be a general extension mechanism.
One random idea is we parse PROJECT/.clj-kondo/** edn files for :lint-as, e.g.
Although doing this the proper way would probably add too much complexity.
The text was updated successfully, but these errors were encountered: