Skip to content

Commit

Permalink
Use -F1 on JRuby (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon authored Dec 20, 2022
1 parent 3eef7a5 commit ee339ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ module Source

require 'parser/static_environment'

if RUBY_ENGINE == 'ruby'
require 'parser/lexer-F1'
else
if RUBY_ENGINE == 'truffleruby'
require 'parser/lexer-F0'
else
require 'parser/lexer-F1'
end
require 'parser/lexer/literal'
require 'parser/lexer/stack_state'
Expand Down

0 comments on commit ee339ce

Please sign in to comment.