Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/rdoc/markdown.kpeg
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ Code = ( Ticks1 < (
{ code text }

RawHtml = < HtmlBlockScript | HtmlTag > { html? ? text : '' }
StrippedComment = < HtmlComment > { '' }
StrippedComment = HtmlComment { '' }

BlankLine = @Sp @Newline { "\n" }

Expand Down
8 changes: 2 additions & 6 deletions lib/rdoc/markdown.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14171,16 +14171,12 @@ def _RawHtml
return _tmp
end

# StrippedComment = < HtmlComment > { '' }
# StrippedComment = HtmlComment { '' }
def _StrippedComment

_save = self.pos
while true # sequence
_text_start = self.pos
_tmp = apply(:_HtmlComment)
if _tmp
text = get_text(_text_start)
end
unless _tmp
self.pos = _save
break
Expand Down Expand Up @@ -16812,7 +16808,7 @@ def _DefinitionListDefinition
Rules[:_Ticks5] = rule_info("Ticks5", "\"`````\" !\"`\"")
Rules[:_Code] = rule_info("Code", "(Ticks1 < ((!\"`\" Nonspacechar)+ | !Ticks1 /`+/ | !Ticks1 (@Spacechar | @Newline !@BlankLine))+ > Ticks1 | Ticks2 < ((!\"`\" Nonspacechar)+ | !Ticks2 /`+/ | !Ticks2 (@Spacechar | @Newline !@BlankLine))+ > Ticks2 | Ticks3 < ((!\"`\" Nonspacechar)+ | !Ticks3 /`+/ | !Ticks3 (@Spacechar | @Newline !@BlankLine))+ > Ticks3 | Ticks4 < ((!\"`\" Nonspacechar)+ | !Ticks4 /`+/ | !Ticks4 (@Spacechar | @Newline !@BlankLine))+ > Ticks4 | Ticks5 < ((!\"`\" Nonspacechar)+ | !Ticks5 /`+/ | !Ticks5 (@Spacechar | @Newline !@BlankLine))+ > Ticks5) { code text }")
Rules[:_RawHtml] = rule_info("RawHtml", "< (HtmlBlockScript | HtmlTag) > { html? ? text : '' }")
Rules[:_StrippedComment] = rule_info("StrippedComment", "< HtmlComment > { '' }")
Rules[:_StrippedComment] = rule_info("StrippedComment", "HtmlComment { '' }")
Rules[:_BlankLine] = rule_info("BlankLine", "@Sp @Newline { \"\\n\" }")
Rules[:_Quoted] = rule_info("Quoted", "(\"\\\"\" (!\"\\\"\" .)* \"\\\"\" | \"'\" (!\"'\" .)* \"'\")")
Rules[:_HtmlAttribute] = rule_info("HtmlAttribute", "(AlphanumericAscii | \"-\")+ Spnl (\"=\" Spnl (Quoted | (!\">\" Nonspacechar)+))? Spnl")
Expand Down
Loading