aboutsummaryrefslogtreecommitdiff
path: root/lib/IRC/Grammar.pm6
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2023-01-23 10:19:49 +0100
committerPatrick Spek <p.spek@tyil.nl>2023-01-23 10:19:49 +0100
commita2fb1f7bd00dbefdd3009ca5b6cec4f5985e0718 (patch)
tree438f02276da629f7f911ba364b15b9acde245248 /lib/IRC/Grammar.pm6
parent121731baf33064577dfea15976489cf64ef5fb8e (diff)
Apply updates I had laying aroundHEADmaster
Diffstat (limited to 'lib/IRC/Grammar.pm6')
-rw-r--r--lib/IRC/Grammar.pm62
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IRC/Grammar.pm6 b/lib/IRC/Grammar.pm6
index f859edc..0bc86f7 100644
--- a/lib/IRC/Grammar.pm6
+++ b/lib/IRC/Grammar.pm6
@@ -28,7 +28,7 @@ token host { <hostname> | <hostaddr> }
token hostname { <shortname> [ '.' <shortname> ]* '.'? }
token hostaddr { <ip6addr> | <ip4addr> }
token ip4addr { [ \d ** 1..3 ] ** 4 % '.' }
-token ip6addr { [ <[ \d a..f A..F ]> ** 1..4 ] ** 8 % ':' }
+token ip6addr { [ <[ \d a..f A..F ]> ** 1..4 ] ** 1..8 % [ '::' | ':' ] }
token shortname { <[ \w \d / ]> <[ \w \d / \- ]>* <[ \w \d / ]>? }
token nospcrlfcl { <-[ \0 \r \n \s : ]> }