[前][次][番号順一覧][スレッド一覧]

ruby-changes:26045

From: nobu <ko1@a...>
Date: Sat, 1 Dec 2012 12:57:53 +0900 (JST)
Subject: [ruby-changes:26045] nobu:r38102 (trunk): markdown.rb: \r

nobu	2012-12-01 12:57:43 +0900 (Sat, 01 Dec 2012)

  New Revision: 38102

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38102

  Log:
    markdown.rb: \r
    
    * lib/rdoc/markdown.rb (RDoc::Markdown): use \r instead of raw control
      code.

  Modified files:
    trunk/lib/rdoc/markdown.rb

Index: lib/rdoc/markdown.rb
===================================================================
--- lib/rdoc/markdown.rb	(revision 38101)
+++ lib/rdoc/markdown.rb	(revision 38102)
@@ -14892,8 +14892,7 @@
     return _tmp
   end
 
-  # RawLine = (< (!"
-" !"\n" .)* Newline > | < .+ > Eof) { text }
+  # RawLine = (< (!"\r" !"\n" .)* Newline > | < .+ > Eof) { text }
   def _RawLine
 
     _save = self.pos
@@ -16319,8 +16318,7 @@
   Rules[:_OptionallyIndentedLine] = rule_info("OptionallyIndentedLine", "Indent? Line")
   Rules[:_StartList] = rule_info("StartList", "&. { [] }")
   Rules[:_Line] = rule_info("Line", "RawLine:a { a }")
-  Rules[:_RawLine] = rule_info("RawLine", "(< (!\"
-\" !\"\\n\" .)* Newline > | < .+ > Eof) { text }")
+  Rules[:_RawLine] = rule_info("RawLine", "(< (!\"\r\" !\"\\n\" .)* Newline > | < .+ > Eof) { text }")
   Rules[:_SkipBlock] = rule_info("SkipBlock", "(HtmlBlock | (!\"\#\" !SetextBottom1 !SetextBottom2 !BlankLine RawLine)+ BlankLine* | BlankLine+ | RawLine)")
   Rules[:_ExtendedSpecialChar] = rule_info("ExtendedSpecialChar", "&{ notes? } \"^\"")
   Rules[:_NoteReference] = rule_info("NoteReference", "&{ notes? } RawNoteReference:ref { note_for ref }")

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]