Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
rename node Entity to Html
Browse files Browse the repository at this point in the history
  • Loading branch information
fperrad committed Mar 30, 2009
1 parent 10c470f commit b6b8c83
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/Compiler.pir
Expand Up @@ -514,11 +514,11 @@ Return generated HTML for all of its children.
.return (code)
.end

=item html(Markdown::Entity node)
=item html(Markdown::Html node)

=cut

.sub 'html' :method :multi(_, ['Markdown'; 'Entity'])
.sub 'html' :method :multi(_, ['Markdown'; 'Html'])
.param pmc node
$S0 = node.'text'()
$I0 = node.'detab'()
Expand Down
2 changes: 1 addition & 1 deletion src/Node.pir
Expand Up @@ -23,8 +23,8 @@ for Markdown.
p6meta.'new_class'('Markdown::Document', 'parent'=>base)
p6meta.'new_class'('Markdown::Emphasis', 'parent'=>base)
p6meta.'new_class'('Markdown::Email', 'parent'=>base)
p6meta.'new_class'('Markdown::Entity', 'parent'=>base)
p6meta.'new_class'('Markdown::HorizontalRule', 'parent'=>base)
p6meta.'new_class'('Markdown::Html', 'parent'=>base)
p6meta.'new_class'('Markdown::ItemizedList', 'parent'=>base)
p6meta.'new_class'('Markdown::Line', 'parent'=>base)
p6meta.'new_class'('Markdown::Link', 'parent'=>base)
Expand Down
16 changes: 8 additions & 8 deletions src/parser/actions.pm
Expand Up @@ -369,20 +369,20 @@ method RawHtml($/, $key) {
}

method HtmlComment($/) {
make Markdown::Entity.new( :text( $/.text() ),
:detab( 1 ) );
make Markdown::Html.new( :text( $/.text() ),
:detab( 1 ) );
}

method HtmlTag($/) {
make Markdown::Entity.new( :text( $/.text() ) );
make Markdown::Html.new( :text( $/.text() ) );
}

method EscapedChar($/) {
make Markdown::Word.new( :text( $/[0].text() ) );
}

method Entity($/) {
make Markdown::Entity.new( :text( $/.text() ) );
make Markdown::Html.new( :text( $/.text() ) );
}

method Symbol($/) {
Expand Down Expand Up @@ -410,7 +410,7 @@ method Apostrophe($/) {
make Markdown::Word.new( :text( $/.text() ) );
# }
# else {
# make Markdown::Entity.new( :text( '’' ) );
# make Markdown::Html.new( :text( '’' ) );
# }
}

Expand All @@ -419,7 +419,7 @@ method Ellipsis($/) {
make Markdown::Word.new( :text( $/.text() ) );
}
else {
make Markdown::Entity.new( :text( '…' ) );
make Markdown::Html.new( :text( '…' ) );
}
}

Expand All @@ -432,7 +432,7 @@ method EnDash($/) {
make Markdown::Word.new( :text( $/.text() ) );
# }
# else {
# make Markdown::Entity.new( :text( '–' ) );
# make Markdown::Html.new( :text( '–' ) );
# }
}

Expand All @@ -441,7 +441,7 @@ method EmDash($/) {
make Markdown::Word.new( :text( $/.text() ) );
}
else {
make Markdown::Entity.new( :text( '—' ) );
make Markdown::Html.new( :text( '—' ) );
}
}

Expand Down

0 comments on commit b6b8c83

Please sign in to comment.