-
-
Notifications
You must be signed in to change notification settings - Fork 36
Drop separate syntax constructs for markup #371
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
7bbc48e
Drop separate constructs for markup
eemeli 38fb722
Also drop selector construct, as it now matches placeholder
eemeli 6e17c13
Clarify language around selectors
eemeli 048e717
Drop markup references from formatting.md
eemeli 19c9e9e
Merge placeholder construct into expression
eemeli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For my action item I am working on ABNF, but we might as well talk about it here. I was going to suggest:
I'm reluctant to embrace
+
and-
being "function introducers". I would rather just have a single starter for the "thing we've been calling a function" and having another name for other types of function. If these are different constructs, they should parse to another production name. That can be accommodated by pushing it down a level:This would allow something to become unreserved by adding a named production:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect that ultimately anything that may have an argument and/or a bag of options could be represented by some sort of "function". The proposed shape of
reserved
encodes this as the only possible direction for the extension of the spec, so ultimately anything that would be later un-reserved could effectively be described as a "function introducer".If we don't want to limit ourselves this way, then really the
reserved
construct ought to be defined on a higher level, allowing for more freedom (using this PR's syntax as a baseline):Now, independently of how we might proceed with
reserved
, I do think that "open" and "close" placeholders are sufficiently common that they definitely should have their own top-level introducers+
and-
. This leaves us with at least 11 more to use for other concepts, should that prove desirable later on.