1. 05 Oct, 2013 1 commit
  2. 15 Sep, 2013 1 commit
  3. 12 Sep, 2013 1 commit
  4. 11 Sep, 2013 1 commit
    • Glenn Morris's avatar
      Improve previous interpreter-mode-alist change · 2a08047a
      Glenn Morris authored
      * lisp/files.el (interpreter-mode-alist): Remove \\` \\' parts.
      (set-auto-mode): Don't regexp-quote elements.
      
      * lisp/progmodes/python.el (interpreter-mode-alist): Remove \\` \\'.
      
      * lisp/progmodes/cc-mode.el (interpreter-mode-alist):
      * lisp/progmodes/ruby-mode.el (interpreter-mode-alist):
      Revert previous change.
      
      * etc/NEWS: Update.
      2a08047a
  5. 10 Sep, 2013 1 commit
    • Glenn Morris's avatar
      Treat interpreter-mode-alist as alist of regexps, not literals · 1af4c220
      Glenn Morris authored
      Cf http://lists.gnu.org/archive/html/emacs-devel/2005-08/msg00472.html
      
      * lisp/files.el (interpreter-mode-alist): Convert to regexps.
      (set-auto-mode): Adapt for this. 
      
      * lisp/progmodes/cperl-mode.el (cperl-clobber-mode-lists):
      Comment out unused variable.
      
      * lisp/progmodes/cc-mode.el (interpreter-mode-alist):
      * lisp/progmodes/python.el (interpreter-mode-alist):
      * lisp/progmodes/ruby-mode.el (interpreter-mode-alist): Convert to regexps.
      
      * lisp/progmodes/sh-script.el (sh-set-shell):
      No longer use interpreter-mode-alist to get list of shells.
      
      * etc/NEWS: Mention this.
      
      Fixes: debbugs:15306
      1af4c220
  6. 05 Sep, 2013 1 commit
  7. 03 Sep, 2013 1 commit
  8. 29 Aug, 2013 1 commit
    • 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
  9. 16 Jul, 2013 2 commits
  10. 13 Jul, 2013 1 commit
  11. 12 Jul, 2013 2 commits
  12. 09 Jul, 2013 1 commit
  13. 03 Jul, 2013 2 commits
  14. 30 Jun, 2013 1 commit
  15. 22 Jun, 2013 2 commits
  16. 21 Jun, 2013 3 commits
  17. 18 Jun, 2013 1 commit
  18. 31 May, 2013 2 commits
  19. 24 May, 2013 1 commit
  20. 19 May, 2013 2 commits
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-heredoc): Leave · 462388b6
      Dmitry Gutov authored
      point at bol following the heredoc openers.
      (ruby-syntax-propertize-expansions): Remove.
      462388b6
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-expression-expansion-re): Allow to · 1a0a0a8a
      Dmitry Gutov authored
      start at point, so that expansion starting right after opening
      slash in a regexp is recognized.
      (ruby-syntax-before-regexp-re): New defvar, extracted from
      ruby-syntax-propertize-function.  Since the value of this regexp
      is looked up at runtime now, we should be able to turn
      `ruby-syntax-methods-before-regexp' into a defcustom later.
      (ruby-syntax-propertize-function): Split regexp matching into two
      parts, for opening and closing slashes.  That allows us to skip
      over string interpolations and support multiline regexps.
      Don't call `ruby-syntax-propertize-expansions', instead use another rule
      for them, which calls `ruby-syntax-propertize-expansion'.
      (ruby-syntax-propertize-expansions): Move `remove-text-properties'
      call to `ruby-syntax-propertize-function'.
      (ruby-syntax-propertize-expansion): Extracted from
      `ruby-syntax-propertize-expansions'.  Handles one expansion.
      (ruby-syntax-propertize-heredoc): Explicitly call
      `ruby-syntax-propertize-expansions'.
      (ruby-syntax-propertize-percent-literal): Leave point right after
      the percent symbol, so that the expression expansion rule can
      propertize the contents.
      
      * test/automated/ruby-mode-tests.el (ruby-heredoc-highlights-interpolations)
      (ruby-regexp-skips-over-interpolation)
      (ruby-regexp-continues-till-end-when-unclosed)
      (ruby-regexp-can-be-multiline)
      (ruby-interpolation-inside-percent-literal): New tests.
      
      * test/indent/ruby.rb: Add multiline regexp example.
      1a0a0a8a
  21. 08 May, 2013 1 commit
    • Stefan Monnier's avatar
      * lisp/progmodes/ruby-mode.el: First cut at SMIE support. · a9e4425b
      Stefan Monnier authored
      (ruby-use-smie): New var.
      (ruby-smie-grammar): New constant.
      (ruby-smie--bosp, ruby-smie--implicit-semi-p)
      (ruby-smie--forward-token, ruby-smie--backward-token)
      (ruby-smie-rules): New functions.
      (ruby-mode-variables): Setup SMIE if applicable.
      * test/indent/ruby.rb: Fix indentation after =; add more cases.
      a9e4425b
  22. 15 Apr, 2013 1 commit
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-beginning-of-defun) · fb549d64
      Dmitry Gutov authored
      (ruby-end-of-defun, ruby-move-to-block): Bind `case-fold-search'
      to nil.
      (ruby-end-of-defun): Remove the unused arg, change the docstring
      to reflect that this function is only used as the value of
      `end-of-defun-function'.
      (ruby-beginning-of-defun): Remove "top-level" from the docstring,
      to reflect an earlier change that beginning/end-of-defun functions
      jump between methods in a class definition, as well as top-level
      functions.
      fb549d64
  23. 06 Mar, 2013 1 commit
  24. 14 Feb, 2013 2 commits
    • Dmitry Gutov's avatar
      (ruby-add-log-current-method): Improve performance at the expense · 71a048c1
      Dmitry Gutov authored
      of accuracy.  `ruby-block-contains-point' is relatively slow, so
      only use it for method and singleton class blocks.
      
      * test/automated/ruby-mode-tests.el
      (ruby-add-log-current-method-after-inner-class): Lower
      expectations: move point inside a method, initially.
      71a048c1
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-parse-partial): Don't increase · 53ca88c4
      Dmitry Gutov authored
      depth for unfinished percent literal.  Not using it in the caller.
      (ruby-move-to-block): Jump over multiline literals of all types,
      ignoring code-looking contents inside them.
      
      * test/automated/ruby-mode-tests.el
      (ruby-move-to-block-skips-percent-literal): Add depth-affecting
      bits inside the examples.
      (ruby-move-to-block-skips-heredoc): New test.
      53ca88c4
  25. 13 Feb, 2013 1 commit
    • 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
  26. 28 Jan, 2013 2 commits
  27. 27 Jan, 2013 1 commit
  28. 01 Jan, 2013 1 commit
  29. 26 Dec, 2012 2 commits