tacahiroy / ctrlp-funky

A super simple function navigator for ctrlp.vim
http://www.vim.org/scripts/script.php?script_id=4592
MIT License
396 stars 71 forks source link

Support Elixir function definition spanning into multiple line #126

Closed phongnh closed 3 years ago

phongnh commented 3 years ago

This following function valid_row? (which is formatted automatically by mix) is not included in funky.

defmodule M do
  def valid_row?(
        %{
          "PHONE" => phone,
          "TOTAL" => total,
          "STATUS" => status
        } = _row
      ) do
    String.length(phone) >= 10 &&
      total > 1000 &&
      status == 'DONE'
  end
end

Replacing \. with \_. to match any single character including newline, this will include the above function.

Please help to review it. Thanks.

tacahiroy commented 3 years ago

Thanks!

phongnh commented 3 years ago

Thanks @tacahiroy