aboutsummaryrefslogtreecommitdiffstats
path: root/lib/prism/lex_compat.rb
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2023-11-02 12:48:19 -0400
committerKevin Newton <kddnewton@gmail.com>2023-11-03 10:13:49 -0400
commitca7297efd389eca792c706326d1af138acf5a4f6 (patch)
treed5dec73cc4aeef484e820493dd4e18d85a64fb72 /lib/prism/lex_compat.rb
parent2a0f2b776325f949ba6d311b0d90cbaaea825b63 (diff)
downloadruby-ca7297efd389eca792c706326d1af138acf5a4f6.tar.gz
[ruby/prism] Wire up options through the Ruby API
https://github.com/ruby/prism/commit/8582d372a3
Diffstat (limited to 'lib/prism/lex_compat.rb')
-rw-r--r--lib/prism/lex_compat.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prism/lex_compat.rb b/lib/prism/lex_compat.rb
index 7556576f30..c1f5cfe944 100644
--- a/lib/prism/lex_compat.rb
+++ b/lib/prism/lex_compat.rb
@@ -607,7 +607,7 @@ module Prism
state = :default
heredoc_stack = [[]]
- result = Prism.lex(source, @filepath)
+ result = Prism.lex(source, filepath: @filepath)
result_value = result.value
previous_state = nil