• Stefan Monnier's avatar
    * lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Add rule for formal · f069bba8
    Stefan Monnier authored
    params of lambda expressions.
    (ruby-smie--implicit-semi-p): Refine rule.
    (ruby-smie--opening-pipe-p): New function.
    (ruby-smie--forward-token, ruby-smie--backward-token): Handle Ruby
    symbols and matched |...| for formal params.
    (ruby-smie-rules): Don't let the formal params of a "do" prevent it
    from being treated as hanging.  Handle "rescue".
    
    Fixes: debbugs:15208
    f069bba8
ruby-mode.el 76.6 KB