Skip to content

Commit

Permalink
Use User_code instead of P_printer
Browse files Browse the repository at this point in the history
  • Loading branch information
ydah committed Oct 24, 2023
1 parent 76487fd commit 0496d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/lrama/grammar/code_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
end

describe "#translated_printer_code" do
let(:printer_token) { token_class.new(type: token_class::P_printer, s_value: '<val>') }
let(:printer_token) { token_class.new(type: token_class::User_code, s_value: '<val>') }

context "when the ref.value is '$' and ref.type is :dollar" do
let(:reference) { Lrama::Grammar::Reference.new(value: '$', type: :dollar, first_column: 0, last_column: 4) }
Expand Down

0 comments on commit 0496d60

Please sign in to comment.