Skip to content

Commit 2bdb32d

Browse files
committed
Add support for escape sequence '\e' in strings
1 parent 34e8555 commit 2bdb32d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lit/scanner.cr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ module Lit
242242
string += "\t"
243243
when 'r'
244244
string += "\r"
245+
when 'e'
246+
string += "\e"
245247
else
246248
string += e # Adding the unknown escape sequence to the string
247249
end

0 commit comments

Comments
 (0)