diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-08-25 11:19:03 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-08-25 20:07:10 +0900 |
| commit | fe8f6dfed15333618f79ecf58944214f08c4f020 (patch) | |
| tree | d646dfabd306d7bac801261e3827372c93fa6f6c | |
| parent | 1f76e42b85be4031bdedcc3e457e8fa949195304 (diff) | |
Remove yarp hack for BOM
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/8281
| -rw-r--r-- | lib/yarp/lex_compat.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/yarp/lex_compat.rb b/lib/yarp/lex_compat.rb index a9867737c2..8b63253356 100644 --- a/lib/yarp/lex_compat.rb +++ b/lib/yarp/lex_compat.rb @@ -588,6 +588,7 @@ module YARP if bom && lineno == 1 column -= 3 +=begin if index == 0 && column == 0 flushed = case token.type @@ -608,6 +609,7 @@ module YARP value.prepend(String.new("\xEF\xBB\xBF", encoding: value.encoding)) end end +=end end event = RIPPER.fetch(token.type) |
