Skip to content

Commit 1ffea04

Browse files
fix parser
1 parent a2fc159 commit 1ffea04

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/code/object/context.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ def code_lookup!(identifier)
1818
elsif parent?
1919
parent.code_lookup!(code_identifier)
2020
else
21-
binding.irb
2221
raise Error, "#{code_identifier} is not defined"
2322
end
2423
end

lib/code/parser/name.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def keyword
172172

173173
def root
174174
(
175-
special_name |
175+
(special_name << separator.ignore) |
176176
(
177177
(keyword << separator).absent << special_characters.absent <<
178178
character.repeat(1)

spec/code_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"Object.new !== Object.new"
1414
] +
1515
%w[
16+
1..3
17+
1...3
1618
:abc.size
1719
Date.new.change
1820
{}.zero?

0 commit comments

Comments
 (0)