Skip to content

Commit

Permalink
[GGE::Perl6Regex] now parses \N
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Masak committed Nov 13, 2009
1 parent 9bd4ca3 commit c07bb4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/GGE/Exp.pm
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ class GGE::Exp::CCShortcut is GGE::Exp does ShowContents {
if self.Str eq '.'
|| self.Str eq '\\s' && $string.substr($pos, 1) eq ' '
|| self.Str eq '\\S' && $string.substr($pos, 1) ne ' '
|| self.Str eq '\\n' && $string.substr($pos, 1) eq "\n"|"\r" {
|| self.Str eq '\\n' && $string.substr($pos, 1) eq "\n"|"\r"
|| self.Str eq '\\N' && !($string.substr($pos, 1) eq "\n"|"\r") {
++$pos;
return True;
}
Expand Down
2 changes: 2 additions & 0 deletions lib/GGE/Perl6Regex.pm
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class GGE::Perl6Regex {
:match(GGE::Exp::CCShortcut));
$optable.newtok('term:\\n', :equiv<term:>,
:match(GGE::Exp::CCShortcut));
$optable.newtok('term:\\N', :equiv<term:>,
:match(GGE::Exp::CCShortcut));
$optable.newtok('term:\\s', :equiv<term:>,
:match(GGE::Exp::CCShortcut));
$optable.newtok('term:\\S', :equiv<term:>,
Expand Down

0 comments on commit c07bb4b

Please sign in to comment.