Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/grammar/pegjs/src/grammar.pegjs
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,9 @@ IPv6address = ( h16 ":" h16 ":" h16 ":" h16 ":" h16 ":" h16 ":" ls32

h16 = HEXDIG HEXDIG? HEXDIG? HEXDIG?

ls32 = ( h16 ":" h16 ) / IPv4address
ls32 = ( h16 ":" h16 (scope_identifier)? ) / IPv4address

scope_identifier = "%" (alphanum)+

IPv4address = dec_octet "." dec_octet "." dec_octet "." dec_octet {
options = options || { data: {}};
Expand Down