We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rep
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
private def `name-first`[_: P]: P[Unit] = P(CharsWhile(isNameFirstAcceptable, 1)) private def `name-char`[_: P]: P[Unit] = P(CharsWhile(isNameCharAcceptable, 1)) /** * https://www.rfc-editor.org/rfc/rfc9535#section-2.5.1.1 * * {{{ * member-name-shorthand = name-first *name-char * name-first = ALPHA / * "_" / * %x80-D7FF / * ; skip surrogate code points * %xE000-10FFFF * name-char = name-first / DIGIT * * DIGIT = %x30-39 ; 0-9 * ALPHA = %x41-5A / %x61-7A ; A-Z / a-z * }}} * */ private def `member-name-shorthandIdentifier`[_: P]: P[String] = P(`name-first` ~ `name-char`.rep).!
Works well, but if I change the name-char to 0 then it will never end, eg:
name-char
0
private def `name-char`[_: P]: P[Unit] = P(CharsWhile(isNameCharAcceptable, 0))
The text was updated successfully, but these errors were encountered:
This is expected
Sorry, something went wrong.
Thanks
No branches or pull requests
Works well, but if I change the
name-char
to0
then it will never end, eg:The text was updated successfully, but these errors were encountered: