Skip to content

Commit

Permalink
RakuAST: enforce left margin on =for foo and =foo
Browse files Browse the repository at this point in the history
This makes:

    =for foo
    bar
baz

a compilation error.
  • Loading branch information
lizmat committed Jul 13, 2023
1 parent c4059d7 commit 34a1a5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Raku/Grammar.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -3723,7 +3723,7 @@ if $*COMPILING_CORE_SETTING {
<.doc-newline>
# and any following lines as well
$<lines>=[[^^ \h* [ <-[=\n]> | '=' ** 2..* ] \N* \n? ]* \n*]
$<lines>=[[^^ $<spaces> \h* [ <-[=\n]> | '=' ** 2..* ] \N* \n? ]* \n*]
}
token doc-block:sym<alias> {
Expand Down Expand Up @@ -3785,7 +3785,7 @@ if $*COMPILING_CORE_SETTING {
[ [ \h+ $<header>=[\N+ \n?]? ] | <doc-newline> ]
# and any following lines as well
$<lines>=[[^^ \h* [ <-[=\n]> | '=' ** 2..* ] \N* \n? ]* \n*]
$<lines>=[[^^ $<spaces> \h* [ <-[=\n]> | '=' ** 2..* ] \N* \n? ]* \n*]
}
token doc-block:sym<lines> {
Expand Down

0 comments on commit 34a1a5d

Please sign in to comment.