Skip to content

Commit b5edf5a

Browse files
committed
Fix escape behavior in single quote string literal
Remove addtion unnecessary \ after escape character \.
1 parent e752c73 commit b5edf5a

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
@@ -1337,7 +1337,7 @@ def identify_string(ltype, quoted = ltype, type = nil)
13371337
when @ltype
13381338
str << ch
13391339
else
1340-
ungetc
1340+
str << ch
13411341
end
13421342
else
13431343
str << read_escape

0 commit comments

Comments
 (0)