-
Notifications
You must be signed in to change notification settings - Fork 17
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
Unmatched close-paren when inside strings #68
Comments
I can't recreate this. If you run this with 2023-06-26.10-14-08.mp4 |
Yes, same with For reference, I'm using:
... and parinfer-rust built from 3c769707ad3b18d530f696fe42a9d495139149ab (built manually since they don't provide binaries for aarch64-darwin). I think parinfer-rust is able to parse this file correctly, because adding a simple test there: diff --git a/tests/cases/paren-mode.json b/tests/cases/paren-mode.json
index 777fa85..ada217f 100644
--- a/tests/cases/paren-mode.json
+++ b/tests/cases/paren-mode.json
@@ -14,6 +14,21 @@
"out": "(let [foo 1]\n foo)"
}
},
+ {
+ "text": "(map! \"] E\")",
+ "options": {},
+ "result": {
+ "text": "(map! \"] E\")",
+ "success": true
+ },
+ "source": {
+ "lineNo": 6,
+ "in": [
+ ""
+ ],
+ "out": ""
+ }
+ },
{
"text": "(let [foo 1]\n foo)",
"options": {}, ... passes 👀 |
I have same problem, using doom emacs in macos |
Might be caused by parinfer-rust, after all - eraserhd/parinfer-rust#139, eraserhd/parinfer-rust#133. |
Is this still an issue for anyone? I still can't recreate it, but with v0.9.0 there should be better support for comment chars |
I think it works correctly now 🙂 |
Awesome, thanks for confirming 😄 |
Hi,
It looks like parinfer-rust / parinfer-rust-mode doesn't correctly track the context and e.g. writing something like this:
... will not parse, saying
Unmatched close-paren.
due to]
being treated as if it was written outside of a string 👀The text was updated successfully, but these errors were encountered: