aboutsummaryrefslogtreecommitdiffstats
path: root/test/prism/magic_comment_test.rb
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2023-10-13 13:34:56 -0400
committerJemma Issroff <jemmaissroff@gmail.com>2023-10-16 15:40:19 -0700
commit9f16f07cf1e340acd9c41acaf8d46394353a0cea (patch)
treed4b6a8e83ba4ca75f7203da8ed05f93a3284861e /test/prism/magic_comment_test.rb
parent5523a23469987f92e38d52d4332bde09bdd8896c (diff)
downloadruby-9f16f07cf1e340acd9c41acaf8d46394353a0cea.tar.gz
[ruby/prism] Additionally handle encoding comments in vim mode
https://github.com/ruby/prism/commit/bf9bdb9d82
Diffstat (limited to 'test/prism/magic_comment_test.rb')
-rw-r--r--test/prism/magic_comment_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/prism/magic_comment_test.rb b/test/prism/magic_comment_test.rb
index c40364ccfa..76c4fcb71f 100644
--- a/test/prism/magic_comment_test.rb
+++ b/test/prism/magic_comment_test.rb
@@ -16,7 +16,8 @@ module Prism
"# -*- CoDiNg: ascii -*-",
"# -*- \s\t\v encoding \s\t\v : \s\t\v ascii \s\t\v -*-",
"# -*- foo: bar; encoding: ascii -*-",
- "# coding \t \r \v : \t \v \r ascii-8bit\n"
+ "# coding \t \r \v : \t \v \r ascii-8bit\n",
+ "# vim: filetype=ruby, fileencoding=big5, tabsize=3, shiftwidth=3\n"
]
examples.each do |example|