Skip to content

Commit

Permalink
Better handling of unquoted characters (e.g. spaces) in AREs.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Dec 9, 2009
1 parent c43ea6e commit 23c00b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ARE/Grammar.pm
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ token quantified_atom {

token atom {
[
| \w [ \w+! <?before \w> ]?
| <.barechar> [ <.barechar>+! <?before <barechar> > ]?
| <metachar>
]
}

token barechar { <-[\\\[*+?]> }

proto token quantifier { <...> }
token quantifier:sym<*> { <sym> }
token quantifier:sym<+> { <sym> }
Expand Down

0 comments on commit 23c00b1

Please sign in to comment.