Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Embedded comments now require backticks.
  • Loading branch information
pmichaud committed Aug 11, 2009
1 parent 8d7fc7d commit 1d75a78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/parser/grammar.pg
Expand Up @@ -94,11 +94,11 @@ token nofun { <!before '(' | '.(' | '\\' | '\'' | '-'> }
token unv {
|| \h+
|| ^^ <.pod_comment>
|| ^^ '#' <?opener> <.panic: "Can't use embedded columns in column 1">
|| '#' [
| <?opener> <quote_expression: >
| \N*
]
|| \h* '#' [
| '`' <quote_expression: >
| <?opener> <.panic: "Embedded comments now require backticks">
| \N*
]
}

## The <afterws> rule returns true if we're immediate after
Expand Down
4 changes: 2 additions & 2 deletions src/setting/Range.pm
Expand Up @@ -54,12 +54,12 @@ class Range is also {
}
}

our #(Range) multi method reverse() {
our #`(Range) multi method reverse() {
# XXX Should eventually return a reversed Range.
@.list.reverse;
}

our #(Bool) multi method true() {
our #`(Bool) multi method true() {
# XXX For some reason, simply ?-ing what follows does not fix the
# return type to Bool. Needs investigating...
self!to_test($.from_exclusive ?? ++($.from.clone) !! $.from)
Expand Down

0 comments on commit 1d75a78

Please sign in to comment.