repo.or.cz
/
rbx.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Change soft-fail to use the config, rather than env
[rbx.git]
/
lib
/
rexml
/
dtd
/
elementdecl.rb
blob
c4e620f3892538ce86c99b1443b6114fcfb89ef4
1
require "rexml/child"
2
module REXML
3
module DTD
4
class ElementDecl < Child
5
START = "<!ELEMENT"
6
START_RE = /^\s*#{START}/um
7
PATTERN_RE = /^\s*(#{START}.*?)>/um
8
PATTERN_RE = /^\s*#{START}\s+((?:[:\w_][-\.\w_]*:)?[-!\*\.\w_]*)(.*?)>/
9
#\s*((((["']).*?\5)|[^\/'">]*)*?)(\/)?>/um, true)
10
11
def initialize match
12
@name = match[1]
13
@rest = match[2]
14
end
15
end
16
end
17
end