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

Error when comment on first line of inserted file #47

Closed
coemgenuslcp opened this issue Jul 20, 2021 · 2 comments
Closed

Error when comment on first line of inserted file #47

coemgenuslcp opened this issue Jul 20, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@coemgenuslcp
Copy link
Contributor

Version 1.5.0 2021-06-08

When I call [insert file="other file.pml"], if the first line of the other file is a comment like so:

[- Here is a comment. -]
Here is a paragraph.

the converter errs with this error:

Error: '-' is an invalid node tag.
Valid tags are: [...].
[ >>> - Here is a comment. -]
line 1, column 2

If the comment is on later lines, there is no error.

@pml-lang pml-lang added the bug Something isn't working label Jul 21, 2021
@pml-lang
Copy link
Owner

Good catch! Thanks.

I was able to reproduce the bug in PML version 1.5.0.

But the example works correctly in PML version 2.0. (Note: PML 2.0 is currently under construction. It uses a new pXML parser).

I will close this issue after publishing PML 2.0.

@pml-lang
Copy link
Owner

pml-lang commented Sep 9, 2021

This bug has been fixed in version 2.0.0

@pml-lang pml-lang closed this as completed Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants