Skip to content

Commit e2e70b7

Browse files
committed
Stop dropping \ after \
In string or regexp literal, \ is a escape character and continuing \ is dropped. This Pull Request stop the dropping.
1 parent 0c47b30 commit e2e70b7

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
@@ -1235,7 +1235,7 @@ def identify_string(ltype, quoted = ltype, type = nil)
12351235
elsif ch == '\\'
12361236
if %w[' /].include? @ltype then
12371237
case ch = getc
1238-
when "\\", "\n", "'"
1238+
when "\n", "'"
12391239
when @ltype
12401240
str << ch
12411241
else

0 commit comments

Comments
 (0)