Skip to content

Commit

Permalink
Treat =place as a directive
Browse files Browse the repository at this point in the history
Not as a block
  • Loading branch information
lizmat committed Mar 19, 2024
1 parent 5551866 commit b82fa83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Raku/Actions.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -3280,7 +3280,7 @@ class Raku::Actions is HLL::Actions does Raku::CommonActions {
:lemma(~$<lemma>), :@paragraphs
}

method doc-block:sym<column-row>($/) {
method doc-block:sym<column-place-row>($/) {
unless $*FROM-SEEN{$/.from}++ {
$*SEEN{$/.from} := Nodify('Doc','Block').new:
:directive, :margin(~$<margin>), :type(~$<type>),
Expand Down
8 changes: 4 additions & 4 deletions src/Raku/Grammar.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -5226,7 +5226,7 @@ Rakudo significantly on *every* run."
# directives that may not be used as block names
token rakudoc-directives {
alias | begin | column | config | end | finish | for | row
alias | begin | column | config | end | finish | for | place | row
}
proto token doc-block {*}
Expand All @@ -5250,14 +5250,14 @@ Rakudo significantly on *every* run."
\n?
}
# handle =column / =row
token doc-block:sym<column-row> {
# handle =column / =place / =row
token doc-block:sym<column-place-row> {
# save any leading whitespace from start of line
^^ $<margin>=[ \h* ]
# custom config madness
'=' $<type>=[ column | row ]
'=' $<type>=[ column | place | row ]
# fetch any configuration
[ [\n $<margin> '=']? \h+ <colonpair> ]*
Expand Down

0 comments on commit b82fa83

Please sign in to comment.