-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Evaluate ('e') with bracket in string #27
Comments
Strange issue. Close it?! |
Maybe. When evaluating s-expression at point, the paren matching to figure out the s-expression to evaluate, does not take into account, if a string contains unmatched parenthesis. A much simpler example is |
@mogenslund I recently learned about tree-sitter, an "efficient incremental parser" compiler which has a Clojure parser (https://github.com/sogaiu/tree-sitter-clojure). It might be worth somehow converting the linked public domain parser from the generated C to Clojure, which would then allow powerful structural editing as we envisioned long ago now! |
Just saw this: https://github.com/nextjournal/lezer-clojure |
This is a good example of why maybe you should use a parser in general!
In the following example if I press 'e' at -> it fails to evaluate the expression because of the bracket in the string.
The text was updated successfully, but these errors were encountered: