[ruby/prism] Fix up docs for lex_compat

https://github.com/ruby/prism/commit/9131e84060
This commit is contained in:
Kevin Newton 2023-12-04 12:15:13 -05:00 committed by git
parent ea9f89eeb6
commit d35aa58b2f

View File

@ -36,11 +36,11 @@ module Prism
private_constant :LexRipper
# :call-seq:
# Prism::lex_compat(source, **options) -> Array
# Prism::lex_compat(source, **options) -> ParseResult
#
# Returns an array of tokens that closely resembles that of the Ripper lexer.
# The only difference is that since we don't keep track of lexer state in the
# same way, it's going to always return the NONE state.
# Returns a parse result whose value is an array of tokens that closely
# resembles the return value of Ripper::lex. The main difference is that the
# `:on_sp` token is not emitted.
#
# For supported options, see Prism::parse.
def self.lex_compat(source, **options)