dlang.org icon indicating copy to clipboard operation
dlang.org copied to clipboard

spec/lex.dd: Specify DelimitedString mandatory line breaks in grammar

Open CyberShadow opened this issue 2 years ago • 3 comments

This implements a suggestion from a previous PR: https://github.com/dlang/dlang.org/pull/3033#discussion_r663481518

We can't describe (within the grammar) that Delimiter and MatchingDelimiter must match, nor that they can't appear within the line, but this brings us a iota closer towards accuracy.

CyberShadow avatar Jul 10 '21 17:07 CyberShadow

Thanks for your pull request, @CyberShadow!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

dlang-bot avatar Jul 10 '21 17:07 dlang-bot

We can't describe (within the grammar) that Delimiter and MatchingDelimiter must match, nor that they can't appear within the line, but this brings us a iota closer towards accuracy.

We also might need to figure out how to exclude delimiter characters (newline in this case) from WysiwygCharacter

dkorpel avatar Jul 10 '21 17:07 dkorpel

@CyberShadow please rebase.

PetarKirov avatar Jul 26 '21 15:07 PetarKirov