• Dmitry Gutov's avatar
    * lisp/progmodes/ruby-mode.el (ruby-move-to-block): Improve · 7132e457
    Dmitry Gutov authored
    performance.  Instead of recalculating indentation fully for each
    line, sum up indentation depth based only on visited lines.
    (ruby-parse-partial): Increase the depth after "do" even when END
    is right after it.
    (ruby-parse-partial): When END is in the middle of a percent
    literal, increase the depth if the delimiter chars belong to the
    paren syntax class.
    
    * test/automated/ruby-mode-tests.el
    (ruby-move-to-block-skips-percent-literal): New test.
    7132e457
ruby-mode-tests.el 13.1 KB