aboutsummaryrefslogtreecommitdiffstats
path: root/misc/ruby-mode.el
Commit message (Collapse)AuthorAgeFilesLines
* ruby-mode.el: squiggly heredocnobu2016-06-021-4/+4
| | | | | | | | * misc/ruby-mode.el (ruby-here-doc-beg-re), (ruby-here-doc-beg-match, ruby-parse-partial): Support for `squiggly heredoc' syntax in ruby-mode. [Fix GH-1372] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: ANDDOT fluent interfacenobu2015-11-121-1/+1
| | | | | | | | * parse.y (parser_yylex): ANDDOT at the head of the line denote line continuation from previous one to support fluent interface, as well as single dot. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby-mode.el: fix regexp syntaxnobu2015-03-061-1/+1
| | | | | | | * misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): division operator can't follow '{' and '|' too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby-mode.el: expand/unexpand blocknobu2013-12-061-4/+44
| | | | | | | | * misc/ruby-mode.el (ruby-brace-to-do-end): split single line block. * misc/ruby-mode.el (ruby-do-end-to-brace): shrink single line block to one line. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix a typo: s/preceging/preceding/knu2013-10-081-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el: Use preceding-char/following-charknu2013-10-071-5/+5
| | | | | | | | (returning 0 at BOF/EOF) instead of char-before/char-after (returning nil at BOF/EOF) to avoid error from char-syntax when at BOF/EOF. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-additional.el (ruby-mode-set-encoding): Add a missingknu2013-10-071-1/+2
| | | | | | | | else clause to unbreak with `cp932`, etc. * misc/ruby-mode.el (ruby-mode-set-encoding): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-additional.el (ruby-mode-set-encoding): Useknu2013-10-071-2/+4
| | | | | | | | | | | | `default-buffer-file-coding-system` if the :prefer-utf-8 property is not available. * misc/ruby-mode.el (ruby-mode-set-encoding): Ditto. * misc/ruby-additional.el (ruby-encoding-map): Override the default value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* misc/ruby-mode.el: Improve `ruby-mode-set-encoding`.knu2013-10-071-35/+62
| | | | | | | | | | | | | | | | | | | | | | | | * misc/ruby-additional.el (ruby-mode-set-encoding): Add support for `prefer-utf-8` which was introduced in Emacs trunk. * misc/ruby-additional.el (ruby-encoding-map): Add a mapping from `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. * misc/ruby-additional.el (ruby-mode-set-encoding): Add support for encodings mapped to nil in `ruby-encoding-map`. * misc/ruby-additional.el (ruby-encoding-map): Map `us-ascii` and `utf-8` to nil by default, meaning they need not be explicitly declared in magic comment. * misc/ruby-additional.el (ruby-encoding-map): Add type declaration for better customize UI. * misc/ruby-mode.el: Ditto for the above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Replace use of obsolete variable `last-command-char` by @maser [fix GH-290]hsbt2013-04-211-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby-mode.el: fix argument indentnobu2012-12-031-9/+13
| | | | | | | | | | | * misc/ruby-mode.el (ruby-block-end-re, ruby-delimiter) (ruby-mode-syntax-table, ruby-parse-partial, ruby-beginning-of-indent): merge from Emacs. * misc/ruby-mode.el (ruby-calculate-indent): fix indentation of argument lines in parentheses. [Bug #5140] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-indent-beg-re): Fix broken regularmrkn2011-06-301-1/+1
| | | | | | expression. Fixes #4546 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-parse-partial): use position of open paren.nobu2011-04-191-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-brace-to-do-end, ruby-do-end-to-brace):nobu2011-03-311-2/+5
| | | | | | adjust space between block beginning and block arguments git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-toggle-block): toggle do/end and {}.nobu2011-03-301-0/+39
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-move-to-block): move to opening ofnobu2011-03-301-3/+13
| | | | | | block. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-mode-map): remove unnecessarynobu2011-03-271-1/+0
| | | | | | | binding. fixes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468952 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el: suppress warnings at byte compile. fixesnobu2011-03-271-56/+66
| | | | | | http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502926 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-parse-partial): fix indent after aref.nobu2011-03-091-1/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-parse-partial): fix for array in block.nobu2011-03-081-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-deep-indent-paren-p, ruby-calculate-indent):nobu2011-03-081-5/+13
| | | | | | | do not apply deep-indent inside parens at the beginning of expressions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-expr-beg): fix for invalid nest errors.nobu2011-02-081-6/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-expr-beg, ruby-in-here-doc-p): tellnobu2011-02-071-2/+11
| | | | | | | singleton class definitions from here documents. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-expr-beg, ruby-parse-partial): keywordnobu2011-02-071-1/+2
| | | | | | | followed by colon is label. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-mode-map): remove deprecated binding.nobu2011-01-271-1/+0
| | | | | | use M-; instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-mode-variables), misc/ruby-style.el:nobu2011-01-071-0/+1
| | | | | | show trailing whitespace. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): highlightnobu2011-01-071-1/+1
| | | | | | regexp after open bracket. [ruby-core:34183] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-forward-sexp): stop after literal hashnobu2010-11-291-0/+1
| | | | | | key labels. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-font-lock-keywords): highlight literalnobu2010-11-291-0/+1
| | | | | | hash key labels as symbols. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Commit miss.nobu2010-10-191-6/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_sprintf.rb: fix ML ref. [ruby-core:32848]nobu2010-10-191-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-mode-set-encoding): commit miss.nobu2010-05-311-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-mode-set-encoding): skip shebang linenobu2010-05-311-1/+1
| | | | | | | always regardless of ruby. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-mode-map): binded C-c C-c and C-c C-c C-ukosaki2010-04-071-1/+3
| | | | | | | | | | to comment-region and uncomment-region. Thanks Michael Klishin! [Feature #872] [ruby-core:20552] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-here-doc-beg-match): fix for here-docnobu2010-01-121-3/+5
| | | | | | | which ends with an underscore. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/completion.rb (IRB::InputCompletor::Operators): Addknu2009-04-031-2/+2
| | | | | | | | | | | | | | | | | overloadable negative operators. * lib/irb/ruby-lex.rb (RubyLex#lex_init): Support overloadable negative operators. * lib/irb/ruby-lex.rb (RubyLex#identify_identifier): Minus signs need to be escaped in regexp character class. * misc/ruby-mode.el (ruby-font-lock-keywords, ruby-parse-partial): Support overloadable negative operators. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el: added comment to mention newer versionmatz2008-12-231-6/+47
| | | | | | | bundled with Emacs 23 or later. a patch from Phil Hagelberg <phil at hagelb.org> in [ruby-core:20838]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el: safe custimizable variables.nobu2008-09-261-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-keyword-end-re): emacs21 support. amatz2008-09-221-15/+41
| | | | | | | | | | | patch from Hiroshi Moriyama <hiroshi at kvd.biglobe.ne.jp> in [ruby-dev:36471]. * misc/ruby-mode.el (ruby-in-ppss-context-p): ditto. * misc/ruby-mode.el (ruby-here-doc-end-syntax): git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/emacs-mode.el: don't set case-fold-search globally to nil;matz2008-09-061-4/+5
| | | | | | instead just set it when we need it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el: fix a variable-name error.matz2008-09-061-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/*.el: untabify, for interal consistency and consistencymatz2008-09-061-689/+689
| | | | | | with standard Emacs elisp files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el, misc/ruby-electric.el: use regexp-opt wherematz2008-09-061-16/+31
| | | | | | possible for more efficient regexps. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el: don't highlight keywords when they're thematz2008-09-061-5/+4
| | | | | | beginning of non-keyword symbols. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el: don't crash the whole mode if the Subversionmatz2008-09-061-3/+2
| | | | | | $ keyword isn't interpolated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/*.el: merged the following patches from Nathan Weizenbaummatz2008-09-061-13/+13
| | | | | | | | <nex342 at gmail.com>. [ruby-core:18424] * misc/ruby-mode.el: improve here-doc performance. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-imenu-create-index-in-block): Fix theknu2008-08-071-1/+1
| | | | | | | | regexp to only pick definition lines properly. `module_funtion' is not a definition of a module named `_function'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el: fix here-doc strings with inner quotes. patchesnobu2008-07-221-46/+96
| | | | | | | | by Nathan Weizenbaum <nex342 AT gmail.com> from [ruby-core:17615] through [ruby-core:17910]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-mode): use run-hooks if run-mode-hook ismatz2008-05-261-1/+3
| | | | | | | not available. a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com> in [ruby-dev:34853]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el: move fontifying code from hook.matz2008-05-021-18/+12
| | | | | | [ruby-core:16636] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e