Skip to content

Conversation

ikappaki
Copy link
Contributor

Please consider patch to raise error when there are unmached closing parentheses or braces.

Test added for both of these, as well as for :fail-fast nil.

@plexus
Copy link
Collaborator

plexus commented Sep 9, 2020

Hi @ikappaki, sorry for the slow response. This got snowed under in my inbox. I think this looks good, but could you fix the indentation? I'll leave some comments inline.

(parseclj-lex-token-type closing-token))

(reverse collection)))))
(fail-fast (a-get options :fail-fast t)))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These let bindings should be aligned as before, if you let Emacs reindent it it should do it correctly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's due to literal tabs, I'll revert to spaces and set indent-tabs-mode in .dir-locals accordingly


stack)

(let ((collection nil))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary to pull this into a separate let? if not I would leave it where it was.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessary, but just because its scope has moved a level down into the else part; I'll restore it and replace with progn instead.

(parseclj-parse-clojure "'(1))")
(parseclj-parser-error (cadr errdata)))
"At position 5, unmatched :rparen"))
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding tests!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review

@plexus plexus merged commit eff9411 into clojure-emacs:master Oct 12, 2020
@plexus
Copy link
Collaborator

plexus commented Oct 12, 2020

Thanks! I've updated the CHANGELOG and tagges this as v0.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants