Skip to content

fix: lark for sub_delims#3

Merged
willynilly merged 2 commits intowillynilly:mainfrom
jkowalleck:fix/sub_delims
Jul 18, 2025
Merged

fix: lark for sub_delims#3
willynilly merged 2 commits intowillynilly:mainfrom
jkowalleck:fix/sub_delims

Conversation

@jkowalleck
Copy link
Copy Markdown
Collaborator

No description provided.

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
ucschar: /[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]/
iprivate: /[\uE000-\uF8FF]/

sub_delims: "!" | "$" | "&" | "\\'" | "(" | ")" | "*" | "+" | "," | ";" | "="
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

the "\\'" was wrong -> it should be "'".

i've copy-pasted the EBNF from https://www.rfc-editor.org/rfc/rfc3987#section-2.2 - therefore, the order might have changed, and there is a linebreak, now.

Comment thread tests/valid_syntax.json
"semantics_notes": "Can occur when ireg_name is empty. To prevent this, change the ireg_name production rule to: ireg_name: (iunreserved | pct_encoded | sub_delims)+"
},
{
"value": "http://-.~_!$&'()*+,;=:%40:80%2f::::::@example.com",
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

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.

2 participants