Skip to content

Commit 4a690f0

Browse files
committed
Support escaped character literal
1 parent e752c73 commit 4a690f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/rdoc/ruby_lex.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ def lex_init()
602602
Token(TkQUESTION)
603603
else
604604
@lex_state = :EXPR_END
605+
ch << getc if "\\" == ch
605606
Token(TkCHAR, "?#{ch}")
606607
end
607608
end

0 commit comments

Comments
 (0)