1. 08 Nov, 2013 3 commits
  2. 07 Nov, 2013 2 commits
  3. 05 Nov, 2013 2 commits
  4. 04 Nov, 2013 2 commits
  5. 03 Nov, 2013 1 commit
  6. 02 Nov, 2013 3 commits
  7. 01 Nov, 2013 2 commits
  8. 27 Oct, 2013 1 commit
  9. 26 Oct, 2013 1 commit
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-smie--args-separator-p): Be more · bae91342
      Dmitry Gutov authored
      specific in what the first arg can be: a non-keyword word,
      string/regexp/percent literal opener, opening paren, or unary
      operator followed directly by word.
      
      * test/automated/ruby-mode-tests.el (ruby-toggle-block-to-brace): Fix
      the test, in respect to adding the space after the curly.
      bae91342
  10. 25 Oct, 2013 2 commits
  11. 24 Oct, 2013 1 commit
  12. 23 Oct, 2013 3 commits
  13. 22 Oct, 2013 1 commit
  14. 21 Oct, 2013 4 commits
  15. 14 Oct, 2013 2 commits
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-smie--args-separator-p): Handle · 1eda1d8d
      Dmitry Gutov authored
      methods ending with `?' and `!'.
      
      * test/indent/ruby.rb: More examples for bug#15594, both failing and
      now passing.
      1eda1d8d
    • Akinori MUSHA's avatar
      * progmodes/ruby-mode.el (ruby-encoding-map): Add a mapping from · e70181b8
      Akinori MUSHA authored
      `japanese-cp932' to `cp932' to fix the problem where saving a
      source file written in Shift_JIS twice would end up having
      `coding: japanese-cp932' which Ruby could not recognize.
      (ruby-mode-set-encoding): Add support for encodings mapped to nil
      in `ruby-encoding-map'.
      (ruby-encoding-map): Map `us-ascii' to nil by default, meaning it
      doesn't need to be explicitly declared in magic comment.
      (ruby-encoding-map): Add type declaration for better customize UI.
      e70181b8
  16. 13 Oct, 2013 1 commit
  17. 12 Oct, 2013 1 commit
  18. 11 Oct, 2013 1 commit
  19. 09 Oct, 2013 1 commit
  20. 07 Oct, 2013 4 commits
  21. 06 Oct, 2013 1 commit
  22. 05 Oct, 2013 1 commit
    • Stefan Monnier's avatar
      Get Ruby's SMIE code to pass the test suite. · 34d1a133
      Stefan Monnier authored
      * lisp/progmodes/ruby-mode.el (ruby-use-smie): Change default.
      (ruby-comment-column): Follow the global default, by default.
      (ruby-smie-grammar): Add assignment syntax.
      (ruby-smie--implicit-semi-p): No implicit semi-colon after an
      open-paren, a comma, or a \.
      (ruby-smie--forward-token, ruby-smie--backward-token): Handle heredocs,
      and line continuations.
      (ruby-smie-rules): Adjust handling of open-paren, now that it's never
      followed by implicit semi-colons.  Add rule for string concatenation
      and for indentation at BOB.
      (ruby-forward-sexp, ruby-backward-sexp): Adjust for when smie is in use.
      
      * lisp/emacs-lisp/smie.el (smie-next-sexp): Don't go back to pos before
      calling next-sexp, since next-token may have skipped chars which
      next-sexp doesn't know should be skipped!
      
      * test/indent/ruby.rb: Port a few cases from automated/ruby-mode-tests.el.
      Adjust indentation of continued line to the new SMIE behavior.
      34d1a133