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

Commit

Permalink
Add parsing of simple single-quoted literals in regexes.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Oct 15, 2009
1 parent e7e5924 commit e04a163
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Regex/P6Regex/Grammar.pm
Expand Up @@ -70,6 +70,7 @@ grammar Regex::P6Regex::Grammar is PCT::Grammar;
token metachar:sym<ws> { <.normspace> {*} }
token metachar:sym<[ ]> { '[' <nibbler> ']' {*} }
token metachar:sym<( )> { '(' <nibbler> ')' {*} }
token metachar:sym<'> { <quote> {*} }
token metachar:sym<.> { $<sym>=['.'] {*} }
token metachar:sym<^> { $<sym>=['^'] {*} }
token metachar:sym<^^> { $<sym>=['^^'] {*} }
Expand Down

0 comments on commit e04a163

Please sign in to comment.