diff --git a/lib/rdoc/markdown.kpeg b/lib/rdoc/markdown.kpeg index 6f418a7a6c..0e15a604f4 100644 --- a/lib/rdoc/markdown.kpeg +++ b/lib/rdoc/markdown.kpeg @@ -1154,7 +1154,7 @@ Code = ( Ticks1 < ( { code text } RawHtml = < HtmlBlockScript | HtmlTag > { html? ? text : '' } -StrippedComment = < HtmlComment > { '' } +StrippedComment = HtmlComment { '' } BlankLine = @Sp @Newline { "\n" } diff --git a/lib/rdoc/markdown.rb b/lib/rdoc/markdown.rb index 4c68329423..c01cab0096 100644 --- a/lib/rdoc/markdown.rb +++ b/lib/rdoc/markdown.rb @@ -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 @@ -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")