-
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
ignore comments? #82
Comments
The problem with the issue you've linked to is that the comment is no longer a comment, but a semicolon inside a string. There's not a way to detect that AFAIK, though if you have ideas, I'm open. When the quote is inserted, parinfer sees a valid string followed by possibly valid code. Parinfer and parinfer-rust largely does ignore comments. Recently, I've merged some PRs that handle different cases in Scheme and Lisp that were not previously handled, thanks to recent contributors. |
I was thinking lately about comment caching. E.g. when Parinfer can ensure that buffer is correct, it can cache comment positions. When user removes, or inserts |
I've been thinking that the "can ensure the buffer is correct" part is an AI-complete problem. But maybe it's not a hard problem but requires the persistence of some state and the analysis of a number of cases?
That's off the top of my head, not a thorough analysis yet... |
Parinfer Rust should be fast enough to strip away comments before processing and migrate unbalanced quote issues that original Parinfer had. Are there any plans for such feature?
The text was updated successfully, but these errors were encountered: