Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vim-ruby/vim-ruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: vim-ruby/vim-ruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fix-blocks-in-dot-continuations
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Mar 15, 2015

  1. Fix blocks in the middle of dot continuations

    The deleted MSL case seems like it has the purpose of only taking the
    closest line of continuations, and ignoring the rest so it doesn't get
    confused by the (potentially unindented) previous line. For example:
    
      one.
        two.
        three do
          puts "OK"
        end
    
    In this case, the MSL search will find "two." and immediately stop
    there, taking +2 spaces from "two.". If it did continue, it'd find
    "one." as well, and respect that one.
    
    However, if the "two." wasn't there...
    
      one.
        three do
        puts "OK"
      end
    
    This changes things simply because the "one." line becomes the MSL, and
    the "three" is indented with respect to it.
    AndrewRadev committed Mar 15, 2015
    Configuration menu
    Copy the full SHA
    a7f0ea4 View commit details
    Browse the repository at this point in the history
Loading