Skip to content
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

Wonky sexp detection #19

Closed
plexus opened this issue Jun 6, 2017 · 4 comments
Closed

Wonky sexp detection #19

plexus opened this issue Jun 6, 2017 · 4 comments

Comments

@plexus
Copy link
Contributor

plexus commented Jun 6, 2017

Seems the code to detect the start/end of the current sexp is still a bit wonky. See the video:

https://youtu.be/NIHWV3FH808

Also seeing a lot of these in the browser console

Error: Unmatched delimiter: %s("]") [at line 191, column 1]
@plexus
Copy link
Contributor Author

plexus commented Jun 6, 2017

Here's the code I had in the buffer

https://gist.github.com/c4fdf414aa83a90271a10e5e3b943e71

@plexus
Copy link
Contributor Author

plexus commented Jun 6, 2017

Seems I was missing a closing paren somewhere. This could arguably be handled more gracefully :)

@mhuebert
Copy link
Owner

mhuebert commented Jun 6, 2017 via email

@mhuebert
Copy link
Owner

mhuebert commented Jun 6, 2017

Closing this just to move the discussion to #20.

Also, a bit of further explanation of the video you posted (thanks btw, that's a really clear way to show the problem!) - currently whenever we are unable to generate an AST, we re-use the AST from the last valid state of the document. This can lead to really weird effects where seemingly random characters are bolded: these are the 'ghosts of parentheses past' ;-).

@mhuebert mhuebert closed this as completed Jun 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants