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

[REQ] Relax enclosing block parsing #56

Open
mhatzl opened this issue Mar 20, 2024 · 0 comments
Open

[REQ] Relax enclosing block parsing #56

mhatzl opened this issue Mar 20, 2024 · 0 comments

Comments

@mhatzl
Copy link
Contributor

mhatzl commented Mar 20, 2024

Enclosing blocks should still be considered valid
if there is no blank line after the end sequence.
This reduces possible expensive backtracking during parsing.
Especially in case attributes are set for a block, because block and attribute parsing would need to be revoked if not followed by a blank line.

Note: Compilers should issue a warning, if enclosed blocks are not followed by a blank line.

Valid with this change:

[[[
Valid block, but warning
]]]{
  id: some_block;
  color: grey;
  font-family: serif;
  font-size: 16px;
}
No blank line after end of enclosed block.
Will lead to a warning, but is still correctly parsed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant