parinfer / parinfer.js

Let's simplify the way we write Lisp
https://shaunlebron.github.io/parinfer
MIT License
1.75k stars 40 forks source link

Incorrect treatment of `"` inside `;` comments #129

Closed fhur closed 7 years ago

fhur commented 7 years ago

The following is marked by parinfer as unformatted. Its because of the " inside the comments.

{:key 1 ;; hello"
 :bar 2}

I'm using atom-parinfer 1.17.0. I'm not sure if I should be opening this issue here or there. By the way: parinfer is amazing.

shaunlebron commented 7 years ago

we have to heed the warning that comments must have balanced quotes to prevent possible corruption. an example is shown here: http://shaunlebron.github.io/parinfer/#inserting-quotes

fhur commented 7 years ago

Gotcha. I completely missed that one. I'm gonna close this then.

shaunlebron commented 7 years ago

np, thanks!