diff options
| author | Philipp A | 2020-09-06 16:55:49 +0200 |
|---|---|---|
| committer | Philipp A | 2020-09-06 16:55:49 +0200 |
| commit | 97d9c8f448045c4da802e1b436bbf709d2509ba5 (patch) | |
| tree | a1e8a0a69a22ac9da1c4828eae6dae63b13f2b56 | |
| parent | 342d09574f418549b801d133bef792649301d8aa (diff) | |
| download | rust-rst-97d9c8f448045c4da802e1b436bbf709d2509ba5.tar.bz2 | |
line comments
| -rw-r--r-- | parser/src/rst.pest | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parser/src/rst.pest b/parser/src/rst.pest index 15ccf90..cf0d42e 100644 --- a/parser/src/rst.pest +++ b/parser/src/rst.pest @@ -184,11 +184,11 @@ url_path_segment_unit = { !("/"|"?") ~ url_unit } url_port = { ASCII_DIGIT* } scheme_relative_file_url = { "//" ~ ( host ~ !("/:/"|"/|/") )? ~ path_absolute_url } relative_url = { ( "//" ~ host ~ (":" ~ url_port)? ~ path_absolute_url? ) | path_absolute_url | (!(arbitrary_scheme ~ ":") ~ path_relative_url) } -/* this is approximately a superset of valid hosts and opaque hosts */ +// this is approximately a superset of valid hosts and opaque hosts host = { ( !(":"|"/"|"?"|"#") ~ url_unit)+ | ("["~(ASCII_HEX_DIGIT|"."|":")+~"]") } special_url_scheme = { ^"ftp" | (^"http" | ^"ws") ~ ^"s"? } /* doesn't include "file" */ arbitrary_scheme = { ASCII_ALPHA ~ ASCII_ALPHANUMERIC* } -/* taken at 2020-09-06 from https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml */ +// taken at 2020-09-06 from https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml known_scheme = { "aaa"|"aaas"|"about"|"acap"|"acct"|"acd"|"acr"|"adiumxtra"|"adt"|"afp"|"afs"|"aim"|"amss"|"android"|"appdata"|"apt"|"ark"|"attachment"|"aw"| "barion"|"beshare"|"bitcoin"|"bitcoincash"|"blob"|"bolo"|"browserext"|"cabal"|"calculator"|"callto"|"cap"|"cast"|"casts"|"chrome"| |
