weskit 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module Weskit
2
- VERSION = '0.3.4'
2
+ VERSION = '0.3.5'
3
3
  end
@@ -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
- /#{id_rule}\s*=\s*_?\s*#{data_rule}/i
77
+ /^#{id_rule}\s*=\s*_?\s*#{data_rule}$/i
77
78
  end
78
79
 
79
80
  def tag prefix
80
- /\[#{prefix}#{id_rule}\]/i
81
+ /^\[#{prefix}#{id_rule}\]$/i
81
82
  end
82
83
 
83
84
  def current_attribute
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weskit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: