ruby-changes:36460
From: nobu <ko1@a...>
Date: Sun, 23 Nov 2014 09:00:52 +0900 (JST)
Subject: [ruby-changes:36460] nobu:r48541 (trunk): elementdecl.rb: suppress warnings
nobu 2014-11-23 09:00:38 +0900 (Sun, 23 Nov 2014) New Revision: 48541 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48541 Log: elementdecl.rb: suppress warnings * lib/rexml/dtd/elementdecl.rb (PATTERN_RE): comment out overridden constant, and '_' is included in '\w'. Modified files: trunk/lib/rexml/dtd/elementdecl.rb Index: lib/rexml/dtd/elementdecl.rb =================================================================== --- lib/rexml/dtd/elementdecl.rb (revision 48540) +++ lib/rexml/dtd/elementdecl.rb (revision 48541) @@ -4,8 +4,8 @@ module REXML https://github.com/ruby/ruby/blob/trunk/lib/rexml/dtd/elementdecl.rb#L4 class ElementDecl < Child START = "<!ELEMENT" START_RE = /^\s*#{START}/um - PATTERN_RE = /^\s*(#{START}.*?)>/um - PATTERN_RE = /^\s*#{START}\s+((?:[:\w_][-\.\w_]*:)?[-!\*\.\w_]*)(.*?)>/ + # PATTERN_RE = /^\s*(#{START}.*?)>/um + PATTERN_RE = /^\s*#{START}\s+((?:[:\w][-\.\w]*:)?[-!\*\.\w]*)(.*?)>/ #\s*((((["']).*?\5)|[^\/'">]*)*?)(\/)?>/um, true) def initialize match -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/