diff options
author | Kevin Newton <kddnewton@gmail.com> | 2023-11-21 07:51:41 -0500 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-11-30 12:11:19 +0900 |
commit | 7174c62f6b7a87b8d1fd12adc8569684ae4d8249 (patch) | |
tree | 6adb97c3590c16fe503f28c5b56ae3d7c57ea598 | |
parent | 3d908a41ab67e2aeced7dc6b9773a017bb859253 (diff) | |
download | ruby-7174c62f6b7a87b8d1fd12adc8569684ae4d8249.tar.gz |
[prism] Remove escaping C source files
-rwxr-xr-x | prism/templates/template.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/prism/templates/template.rb b/prism/templates/template.rb index 626347ee24..7c5e7cd316 100755 --- a/prism/templates/template.rb +++ b/prism/templates/template.rb @@ -360,7 +360,6 @@ module Prism =end HEADING else - escape = true <<~HEADING /******************************************************************************/ /* This file is generated by the templates/template.rb script and should not */ @@ -374,9 +373,6 @@ module Prism write_to ||= File.expand_path("../#{name}", __dir__) contents = heading + erb.result_with_hash(locals) - if escape - (contents = contents.b).gsub!(/[^\t-~]/) {|c| "\\x%.2x" % c.ord} - end if (extension == ".c" || extension == ".h") && !contents.ascii_only? # Enforce that we only have ASCII characters here. This is necessary |