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-4.0.0/lib/syntax_suggest/code_line.rb, line 172
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