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

RFC Proposal: Only ASCII-word-characters and dash are allowed in anchor names #64

Closed
wants to merge 1 commit into from

Conversation

eemeli
Copy link
Member

@eemeli eemeli commented Jul 23, 2020

At the moment, an anchor name can consist of almost any printable character, with the following specific exceptions:

\t | \r | \n | ' ' | ',' | '[' | ']' | '{' | '}'

Some implementations support a stricter subset of characters.
LibYAML, for instance, only supports:

'A'-'Z' | 'a'-'z' | '0'-'9' | '_' | '-'

This freedom in anchor names is useless to the user, while making parsing more difficult.

@ingydotnet ingydotnet added the RFC Request For Comment label Jul 23, 2020
@eemeli eemeli requested review from pantoniou and a team July 29, 2020 17:22
@ingydotnet
Copy link
Member

Merged as RFC-0003

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC Request For Comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants