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

Tighten up slashdash definition #33

Merged
merged 1 commit into from
Dec 16, 2020
Merged

Tighten up slashdash definition #33

merged 1 commit into from
Dec 16, 2020

Conversation

lilyball
Copy link
Contributor

Previously slashdash was allowed anywhere ws was, and could be followed by any legal slashdashable token regardless of position. This caused some ambiguous parsing and enabled constructions we really don't want.

The new version simply allows a slashdash to preceed each commentable token, thus restricting its use to locations where the token is otherwise valid.

Fixes #31.

Previously slashdash was allowed anywhere `ws` was, and could be
followed by any legal slashdashable token regardless of position. This
caused some ambiguous parsing and enabled constructions we really don't
want.

The new version simply allows a slashdash to preceed each commentable
token, thus restricting its use to locations where the token is
otherwise valid.
Copy link
Member

@zkat zkat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is awesome! Thank you so much for this! :)

@zkat zkat merged commit f55ac50 into kdl-org:main Dec 16, 2020
@lilyball lilyball deleted the patch-4 branch December 16, 2020 06:01
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

Successfully merging this pull request may close these issues.

Slashdash comments are... wrong
2 participants