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 parsing doc containing only an attribute #605

Closed
xcoulon opened this issue Jun 14, 2020 · 0 comments · Fixed by #606
Closed

Error when parsing doc containing only an attribute #605

xcoulon opened this issue Jun 14, 2020 · 0 comments · Fixed by #606
Assignees
Milestone

Comments

@xcoulon
Copy link
Member

xcoulon commented Jun 14, 2020

Eg:

.foo

fails with the following error:

Error: tmp/test.adoc:1:5 (4): no match found, expected: " ", "#", "*", "****", "++++", "-", "----", ".", "....", "//", "=", "====", "> ", "CAUTION", "IMPORTANT", "NOTE", "TIP", "WARNING", "[", "\n", "\r", "\r\n", "\t", "____", "```", "image::", "|===", ., [0-9], [A-Z], [\pL0-9,.?!;], [\pL0-9], [^:\r\n], [^\r\n<>] or [a-z]
tmp/test.adoc:1:5 (4): no match found, expected: " ", "#", "*", "****", "++++", "-", "----", ".", "....", "//", "=", "====", "> ", "CAUTION", "IMPORTANT", "NOTE", "TIP", "WARNING", "[", "\n", "\r", "\r\n", "\t", "____", "```", "image::", "|===", ., [0-9], [A-Z], [\pL0-9,.?!;], [\pL0-9], [^:\r\n], [^\r\n<>] or [a-z]
@xcoulon xcoulon added this to the v0.5.0 milestone Jun 14, 2020
@xcoulon xcoulon changed the title Error when parsing doc with only an attribute Error when parsing doc containing only an attribute Jun 14, 2020
xcoulon added a commit to xcoulon/libasciidoc that referenced this issue Jun 14, 2020
the draft document contains the attributes, but they
are filtered out when processing it.

Fixes bytesparadise#605 - Error when parsing doc containing only an attribute

Signed-off-by: Xavier Coulon <[email protected]>
xcoulon added a commit that referenced this issue Jun 14, 2020
standalone attributes may appear at the end
of the document, but they are filtered out 
when processing the latter.

Fixes #605

Signed-off-by: Xavier Coulon <[email protected]>
@xcoulon xcoulon self-assigned this Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant