Results for: "minmax"

No documentation available

When there is an invalid block with a keyword missing an end right before another end, it is unclear where which keyword is missing the end

Take this example:

class Dog       # 1
  def bark      # 2
    puts "woof" # 3
end             # 4

However due to github.com/ruby/syntax_suggest/issues/32 the problem line will be identified as:

> class Dog       # 1

Because lines 2, 3, and 4 are technically valid code and are expanded first, deemed valid, and hidden. We need to un-hide the matching end line 4. Also work backwards and if there’s a mis-matched keyword, show it too

Parses the most indented lines into blocks that are marked and added to the frontier

case foo; in bar; end ^^^^^^^^^^^^^^^^^^^^^

foo => [*, bar, *]

^^^^^^^^^^^

def foo(…); bar(…); end

^^^

def foo(…); end

^^^

super ^^^^^

super {} ^^^^^^^^

foo, = 1 ^^^^^^^^

:“foo #{bar}” ^^^^^^^^^^^^^

foo in bar ^^^^^^^^^^

foo => bar ^^^^^^^^^^

/(?<foo>foo)/ =~ bar ^^^^^^^^^^^^^^^^^^^^

foo => ^(bar)

^^^^^^

foo = 1 and bar => ^foo

^^^^

class << self; end ^^^^^^^^^^^^^^^^^^

__ENCODING__ ^^^^^^^^^^^^

__LINE__ ^^^^^^^^

case foo; in bar; end ^^^^^^^^^^^^^^^^^^^^^

foo => [*, bar, *]

^^^^^^^^^^^

def foo(…); bar(…); end

^^^

def foo(…); end

^^^

super ^^^^^

super {} ^^^^^^^^

foo, = 1 ^^^^^^^^

:“foo #{bar}” ^^^^^^^^^^^^^

Search took: 4ms  ·  Total Results: 1823