Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
report unrecognized backslash sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Sep 7, 2010
1 parent 237bf91 commit 24b297f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Regex/P6Regex/Grammar.pm
Expand Up @@ -145,6 +145,7 @@ grammar Regex::P6Regex::Grammar is HLL::Grammar;
token backslash:sym<z> { 'z' <.obs: '\\z as end-of-string matcher', '$'> }
token backslash:sym<Z> { 'Z' <.obs: '\\Z as end-of-string matcher', '\\n?$'> }
token backslash:sym<Q> { 'Q' <.obs: '\\Q as quotemeta', 'quotes or literal variable match'> }
token backslash:sym<unrec> { {} \w <.panic: 'Unrecognized backslash sequence'> }
token backslash:sym<misc> { \W }

proto token assertion { <...> }
Expand Down

0 comments on commit 24b297f

Please sign in to comment.