Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Embedded comments now require backticks.

  • Loading branch information...
commit 1d75a78c376b602cbccb2cf701a5e5c76babbdb4 1 parent 8d7fc7d
Patrick R. Michaud pmichaud authored
Showing with 7 additions and 7 deletions.
  1. +5 −5 src/parser/grammar.pg
  2. +2 −2 src/setting/Range.pm
10 src/parser/grammar.pg
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
4 src/setting/Range.pm
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.