Skip to content

Commit

Permalink
RakuAST: make =finish a directive
Browse files Browse the repository at this point in the history
As discussed in
  finanalyst/Rakudoc-BETA#17
following Damian's comments
  finanalyst/Rakudoc-BETA#17 (comment)
  • Loading branch information
lizmat committed Jul 3, 2023
1 parent 7d037bb commit b17f9c1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Raku/Grammar.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -3601,14 +3601,10 @@ if $*COMPILING_CORE_SETTING {
proto token doc-block {*}
# handle =finish and friends
# handle =finish
token doc-block:sym<finish> {
^^ \h*
[
| '=begin' \h+ 'finish' <doc-newline>
| '=for' \h+ 'finish' <doc-newline>
| '=finish' <doc-newline>
]
'=finish' <doc-newline>
$<finish> = .*
}
Expand Down

0 comments on commit b17f9c1

Please sign in to comment.