End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
SyntaxSuggest::CodeLine#ignore_newline_not_beg?
ignore_newline_not_beg?
lib/syntax_suggest/code_line.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/syntax_suggest/code_line.rb, line 174
def ignore_newline_not_beg?
@ignore_newline_not_beg
end
- Not stable API
-
Lines that have a
on_ignored_nltype token and NOT aBEGtype seem to be a good proxy for the ability to join multiple lines into one.This predicate method is used to determine when those two criteria have been met.
The one known case this doesn’t handle is:
ExampleRipper.lex <<~EOM a && b || c EOM
For some reason this introduces
on_ignore_newlinebut with BEG type