forked from crystal-lang/crystal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ASTNode#to_s to use escape sequence correctly (crystal-lang#5842)
* Fix ASTNode#to_s to use escape sequence correctly ASTNode#to_s against StringInterpolation, RegexLiteral, and Call of backtick operator is buggy, it is missing to use escape sequence. For example `pp "#{1}\0"` cannot be compiled by current compiler. * Regex: make append_source as class method for RegexLiteral#to_s * Use Regex.append_source directly * Remove escape_regex and use Regex.append_source directly for all crystal-lang#5842 (comment) It is super tricky way. But @straight-shoota said, so it is right way also.
- Loading branch information
1 parent
b457815
commit f722696
Showing
3 changed files
with
15 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters