Permalink
Commits on Apr 26, 2017
Commits on Apr 21, 2017
  1. Disable PATH enforcement on funky Windows setups

    Closes #343
    tpope committed Apr 21, 2017
Commits on Apr 20, 2017
Commits on Apr 16, 2017
Commits on Apr 13, 2017
  1. Fix [m and [M family of maps

    This is me blindly applying to vim-ruby the lessons of
    <tpope/vim-endwise#93>.
    tpope committed Apr 13, 2017
Commits on Apr 10, 2017
  1. Slash at end of line is division

    Closes #171
    tpope committed Apr 10, 2017
Commits on Mar 10, 2017
  1. Skip spawning thread in nvim (#332)

    `neovim-ruby` does not support multi-threaded RPC requests, so
    attempting to spawn a thread crashes the provider process (see
    alexgenco/neovim-ruby#28).
    
    I also fixed a typo `require 'Thread'` -> `require 'thread'`
    (lowercase). I'm not sure how this code could have actually worked,
    since `require 'Thread'` raises a `LoadError`.
    alexgenco committed with tpope Mar 10, 2017
Commits on Mar 5, 2017
  1. Documentation

    AndrewRadev committed Mar 5, 2017
  2. Merge pull request #329 from nerdrew/master

    Add option for end alignment of variable assignments
    AndrewRadev committed on GitHub Mar 5, 2017
Commits on Feb 20, 2017
Commits on Feb 16, 2017
  1. Merge pull request #334 from nerdrew/update-rspec

    bump rspec version
    AndrewRadev committed on GitHub Feb 16, 2017
  2. bump rspec version

    nerdrew committed Feb 8, 2017
Commits on Feb 6, 2017
  1. Fix issue with wrong indent line

    Taking the indent of `clnum` doesn't really make sense in this case, the
    likely code should have been `line('.')` (the line we move to after the
    search).
    AndrewRadev committed Feb 6, 2017
  2. Fix issue with indent callback order

    For details, see #328
    
    The "AfterLeadingOperator" callback gets invoked in a situation where
    the "UnbalancedBracket" should take precedence. Difficult to say if this
    will break anything, but let's see.
    AndrewRadev committed Feb 6, 2017
Commits on Feb 5, 2017
  1. Merge pull request #324 from vim-ruby/organize-indent-into-functions

    Organize indent into functions
    AndrewRadev committed on GitHub Feb 5, 2017
Commits on Feb 3, 2017
  1. fix indent for closing html tag (#327)

    after multiline erb tag
    RGBD committed with tpope Feb 3, 2017
Commits on Jan 5, 2017
  1. Use `plnum_msl` instead of `pline_msl`

    A weird name, but it's still a line number.
    AndrewRadev committed Jan 5, 2017
  2. Remove some leftover TODOs

    AndrewRadev committed Jan 5, 2017
  3. Fix closing bracket issue

    AndrewRadev committed Dec 17, 2016
  4. Correct default indent

    AndrewRadev committed Dec 17, 2016
  5. Minor comment fix

    AndrewRadev committed Nov 6, 2016
  6. Fix broken test, add note

    AndrewRadev committed Nov 3, 2016
  7. Don't fetch the MSL unless absolutely necessary

    For some MSLs, we never actually use them in conditions, just at return
    points. Makes it easy to delay the point where we need to fetch it for
    checks. This ends up being a pretty big performance improvement.
    AndrewRadev committed Nov 3, 2016
  8. Reorganize indent file contents

    The new order is as follows:
    
    0. Initialization
    1. Variables
    2. GetRubyIndent Function
    3. Indenting Logic Callbacks
    4. Auxiliary Functions
    
    The auxiliary functions have always gotten in the way of debugging --
    the GetRubyIndent function is the most important one, the entry point,
    the rest is jumped-to when needed.
    AndrewRadev committed Oct 7, 2016
  9. Split indent code into separate functions

    Named, easy to overview, hopefully much easier to debug.
    AndrewRadev committed Oct 7, 2016
  10. Specs

    AndrewRadev committed Oct 7, 2016
  11. Get rid of "ind" mutation

    The future functions need to be stateless.
    AndrewRadev committed Oct 7, 2016
  12. Collect all indent info in a single dict

    The only argument that will be necessary to provide to the future
    function callbacks.
    AndrewRadev committed Oct 7, 2016
  13. Rename variables, move them to the top

    Some consistency in naming means no need to wonder what "lnum" or "line"
    is at this particular point in the file. It also means that we can
    replace all the snippets of code with separate functions that take the
    same inputs.
    AndrewRadev committed Oct 7, 2016
Commits on Oct 23, 2016
  1. Try to fix a heredoc highlighting issue

    The problem is that the following code highlights the first `EOS` as a
    constant:
    
      def foo()
        <<-EOS
        EOS
      end
    
    This seems to be related to the `\_s` in the negative lookbehind
    pattern. The "<<" is considered the start of a heredoc when it's not
    prefixed by something that ends with ")" (which sort of makes sense,
    might be a shift operator), but in a multiline case, this seems
    incorrect. Changing the whitespaciness of the `\_s` seems to fix the
    issue.
    
    This has already been done for *some* heredoc patterns, but not all, it
    seems.
    AndrewRadev committed Oct 23, 2016
Commits on Oct 7, 2016