Permalink
Browse files

Embedded comments now require backticks.

  • Loading branch information...
1 parent 8d7fc7d commit 1d75a78c376b602cbccb2cf701a5e5c76babbdb4 @pmichaud pmichaud committed Aug 11, 2009
Showing with 7 additions and 7 deletions.
  1. +5 −5 src/parser/grammar.pg
  2. +2 −2 src/setting/Range.pm
View
@@ -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
@@ -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)

0 comments on commit 1d75a78

Please sign in to comment.