Skip to content

Commit 8f8b8a1

Browse files
committed
add configure(parser: Synvert::PRISM_PARSER) to generated snippet
1 parent 91e4f97 commit 8f8b8a1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/synvert/command.rb

+2
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ def generate_snippet(snippet_name)
118118
# frozen_string_literal: true
119119
120120
Synvert::Rewriter.new '#{group}', '#{name}' do
121+
configure(parser: Synvert::PRISM_PARSER)
122+
121123
description <<~EOS
122124
It converts Foo to Bar
123125

spec/synvert/command_spec.rb

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ module Synvert
8585
# frozen_string_literal: true
8686
8787
Synvert::Rewriter.new 'ruby', 'foobar' do
88+
configure(parser: Synvert::PRISM_PARSER)
89+
8890
description <<~EOS
8991
It converts Foo to Bar
9092

0 commit comments

Comments
 (0)