Skip to content

Commit

Permalink
add configure(parser: Synvert::PRISM_PARSER) to generated snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
flyerhzm committed Jun 15, 2024
1 parent 91e4f97 commit 8f8b8a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/synvert/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ def generate_snippet(snippet_name)
# frozen_string_literal: true
Synvert::Rewriter.new '#{group}', '#{name}' do
configure(parser: Synvert::PRISM_PARSER)
description <<~EOS
It converts Foo to Bar
Expand Down
2 changes: 2 additions & 0 deletions spec/synvert/command_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ module Synvert
# frozen_string_literal: true
Synvert::Rewriter.new 'ruby', 'foobar' do
configure(parser: Synvert::PRISM_PARSER)
description <<~EOS
It converts Foo to Bar
Expand Down

0 comments on commit 8f8b8a1

Please sign in to comment.