-
Notifications
You must be signed in to change notification settings - Fork 6
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
Comment and metadata issue #74
Comments
@sogaiu thanks for the report. From what I can see the input that you pass in the first case is not valid since a metadata entry cannot be added to a comment. Could you please tell me if the result of |
Thank for the response. Hmm, command line interaction with
That looks to me like the metadata was successfully associated with some Regarding
for errors, may be you mean like this?
|
@sogaiu thanks for the info, that helped to clear things out. I think the problem is that the current metadata parser rule does not expect a comment; which is a mistake. See here I am not sure how the clojure parser is handling this in a more general case (whitespace, comment, discard) so I would like to check that out before fixing this. |
It looks like if there is a comment right after some metadata the parse result may be off:
Note that the comment, last whitespace, and vector are siblings of metadata and not children.
This is in contrast to:
where vector is a child of metadata.
I encountered this in the wild: https://github.com/lspector/Clojush/blob/master/src/clojush/instructions/code.clj#L166-L176
The text was updated successfully, but these errors were encountered: