Skip to content

Commit 0ed52bf

Browse files
committed
Separate "foo!=bar" to "foo", "!=" and "bar"
1 parent e752c73 commit 0ed52bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rdoc/ruby_lex.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ def identify_identifier
985985

986986
ungetc
987987

988-
if (ch == "!" || ch == "?") && token[0,1] =~ /\w/ && peek(0) != "="
988+
if ((ch == "!" && peek(1) != "=") || ch == "?") && token[0,1] =~ /\w/
989989
token.concat getc
990990
end
991991

0 commit comments

Comments
 (0)