-
Notifications
You must be signed in to change notification settings - Fork 16
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
Clojure support #98
Comments
Another option for the tokenization is that we add an API to Calva to get the tokens it has already lexed out. For larger documents it might save performance to not tokenize several times. |
Hello, thanks for creating this issue. Well, I guess I have good news. Blockman has disabled square bracket ( Go to VS Code settings, and search: I hope it will work. If not, please let me know. |
Awesome! It works great for Clojure. Looks like so now: It doesn't start highlighting blocks in JS and JSON files for me. Which is good, but a bit strange, since I enabled it. Is there a way you can make it possible to scope Blockman settings by language? Then users could do: "[clojure]": {
"blockman.n23AnalyzeSquareBrackets": true,
"blockman.n24AnalyzeRoundBrackets": true
}, That currently is marked as a problem with the message: ”This setting cannot be applied because it is not registered as language override setting.” Indicating that we can registering settings as being overridable by language. And then Blockman could provide |
Thanks, I'll try that soon. |
Thanks for providing Blockman!
I would love for it to have Clojure support. Clojure is a LISP, so therefore structured, similar to XML, but using only
()
,[]
, and{}
to mark start and end of forms (a.k.a. S-expressions).In this screenshot you can see that Blockman does the right thing (afaiu) on
{}
forms, but doesn't mark up the two other form types:At line 29 I have tried to trick Blockman by putting
}
inside a string, and also in a line comment, but Blockman handles it. Leading me to think that at least basic Clojure support might be in close reach for it (speculation, but anyway 😄).If you think you need a ”real” Clojure tokenizer, I have one in Calva to use for inspiration, and if that one is not a good fit, I think I know where to find two other JavaScript implementations. But hopefully a naïve ”if Clojure or other LISP, do whatever is currently done with
{}
with()
and[]
too” could work.Cheers!
The text was updated successfully, but these errors were encountered: