Skip to content

Commit

Permalink
Clean up some places where latin1->utf8 conversion did the wrong thing.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed May 12, 2009
1 parent 19490ae commit fcf5d97
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/parser/grammar.pg
Expand Up @@ -105,7 +105,7 @@ token unv {
## a set of whitespace.

token afterws {
## <?{ $¢ == $!ws_to != $!ws_from }>
## <?{ $¢ == $!ws_to != $!ws_from }>
{{ $P0 = match.'to'()
$P1 = get_global '$!ws'
$P2 = $P1.'to'()
Expand Down Expand Up @@ -727,7 +727,7 @@ rule enum_declarator {

[
| <?before '(' > <circumfix> {*} #= circumfix
| <?before '<' | '«' > <quote> {*} #= quote
| <?before '<' | '«' > <quote> {*} #= quote
]
}

Expand Down Expand Up @@ -822,7 +822,7 @@ token desigilname {
}

token special_variable {
$<sym>=[ '$/' | '$!' | '$¢' ] <!before \w> {*}
$<sym>=[ '$/' | '$!' | '$¢' ] <!before \w> {*}
}

token circumfix {
Expand Down Expand Up @@ -897,7 +897,7 @@ token quote {
| <.before '"' > <quote_expression: :qq>
| <.before '<<' > <quote_expression: :ww :qq>
| <.before '<' > <quote_expression: :w :q>
# | <.before '«' > <quote_expression: :ww :qq> FIXME: unicode
# | <.before '«' > <quote_expression: :ww :qq> FIXME: unicode
| <.before '/'> <quote_expression: :regex>
| [m|rx] <.ws>
[ [':P5'|':Perl5'] <.ws> <quote_expression: :regex :P5>
Expand Down

0 comments on commit fcf5d97

Please sign in to comment.