Skip to content

Commit 2755e5b

Browse files
committed
Fix %= handling
1 parent e752c73 commit 2755e5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/rdoc/ruby_lex.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,8 @@ def lex_int2
883883
identify_quotation
884884
elsif peek(0) == '='
885885
getc
886-
Token(TkOPASGN, :%)
886+
@lex_state = :EXPR_BEG
887+
Token(TkOPASGN, '%')
887888
elsif @lex_state == :EXPR_ARG and @space_seen and peek(0) !~ /\s/
888889
identify_quotation
889890
else

0 commit comments

Comments
 (0)