weskit 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/weskit/version.rb +1 -1
- data/lib/weskit/wml/parsers/simple.rb +3 -2
- metadata +1 -1
data/lib/weskit/version.rb
CHANGED
@@ -23,6 +23,7 @@ module Weskit::WML::Parsers
|
|
23
23
|
|
24
24
|
elsif closing_tag? line
|
25
25
|
if current.name != current_tag
|
26
|
+
debugger
|
26
27
|
raise Weskit::WML::Errors::ParseError
|
27
28
|
end
|
28
29
|
stack.last << current
|
@@ -73,11 +74,11 @@ module Weskit::WML::Parsers
|
|
73
74
|
end
|
74
75
|
|
75
76
|
def attribute
|
76
|
-
|
77
|
+
/^#{id_rule}\s*=\s*_?\s*#{data_rule}$/i
|
77
78
|
end
|
78
79
|
|
79
80
|
def tag prefix
|
80
|
-
|
81
|
+
/^\[#{prefix}#{id_rule}\]$/i
|
81
82
|
end
|
82
83
|
|
83
84
|
def current_attribute
|