Skip to content

Commit f6af91b

Browse files
committed
Remove :: from hash key detection condition
1 parent dec804f commit f6af91b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rdoc/ruby_lex.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ def identify_identifier
948948
@indent_stack.push token_c
949949
end
950950
else
951-
if peek(0) == ':'
951+
if peek(0) == ':' and !peek_match?(/^::/)
952952
token.concat getc
953953
token_c = TkSYMBOL
954954
else
@@ -986,7 +986,7 @@ def identify_identifier
986986
elsif token[token.size - 1, 1] =~ /[!?]/
987987
return Token(TkFID, token)
988988
else
989-
if peek(0) == ':'
989+
if peek(0) == ':' and !peek_match?(/^::/)
990990
token.concat getc
991991
return Token(TkSYMBOL, token)
992992
else

0 commit comments

Comments
 (0)