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

Parens within enclosed symbol are not ignored in Scheme and Common Lisp #77

Closed
mnacamura opened this issue Jun 12, 2020 · 1 comment · Fixed by #78 or #79
Closed

Parens within enclosed symbol are not ignored in Scheme and Common Lisp #77

mnacamura opened this issue Jun 12, 2020 · 1 comment · Fixed by #78 or #79

Comments

@mnacamura
Copy link
Contributor

In Scheme and Common Lisp, a pipe-enclosed literal is a symbol.

(let ((x '|(|))
  (print x))

In the above S-expression, ( inside |(| should be ignored, but parinfer-rust seems failing.
I want a clue to fix this. Is it sufficient to add another switch for | around the code below?

} else if ch == DOUBLE_QUOTE {
on_quote(result);

@eraserhd
Copy link
Owner

Since Clojure doesn't have pipe-delimited symbols, it should be an option. But then, yes, handling pipe here and adding a flag like in_pipe_symbol to the state should do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants