- 28 Jan, 2013 1 commit
-
-
Dmitry Gutov authored
temporarily) broken indentation. * automated/ruby-mode-tests.el (ruby-block-test-example): Break indentation of the do block opener and add a line inside it. * automated/ruby-mode-tests.el (works-on-do, ok-with-three): Adjust line numbers.
-
- 27 Jan, 2013 1 commit
-
-
Dmitry Gutov authored
of "\\b". Remove some checks made superfluous as a result.
-
- 01 Jan, 2013 1 commit
-
-
Paul Eggert authored
-
- 26 Dec, 2012 2 commits
-
-
Dmitry Gutov authored
Rakefile regexp. (auto-mode-alist): Associate .gemspec files with ruby-mode (https://bugs.ruby-lang.org/issues/5453).
-
Dmitry Gutov authored
"module" and "def" to have indentation before them. Regression from 2012-09-07T04:15:56Z!dgutov@yandex.ru (see the new test). * test/automated/ruby-mode-tests.el (ruby-indent-after-block-in-continued-expression): New test.
-
- 24 Dec, 2012 1 commit
-
-
Dmitry Gutov authored
Fixes: debbugs:13200
-
- 14 Dec, 2012 3 commits
-
-
Paul Eggert authored
My favorite was that the word "dictionary" was misspelled. Also, correct the title in the DeRemer & Pennello 1982 citation, and add a URL.
-
Dmitry Gutov authored
Extract `ruby-syntax-propertize-expansions'. (ruby-syntax-propertize-expansions): Only change syntax on certain string delimiters, to punctuation. This way the common functions like forward-word and thing-at-point still work. (ruby-match-expression-expansion): Improve readability. (ruby-block-contains-point): New function. (ruby-add-log-current-method): Handle several edge cases. * test/automated/ruby-mode-tests.el Rename one interpolation test; add three more. (ruby-with-temp-buffer): New macro, use it where appropriate. (ruby-add-log-current-method-examples): Use "_" for target point. Add four tests for ruby-add-log-current-method.
-
Dmitry Gutov authored
Extract `ruby-syntax-propertize-expansions'. (ruby-syntax-propertize-expansions): Only change syntax on certain string delimiters, to punctuation. This way the common functions like forward-word and thing-at-point still work. * test/automated/ruby-mode-tests.el Rename one interpolation test; add three more.
-
- 14 Nov, 2012 3 commits
-
-
Dmitry Gutov authored
(ruby-syntax-propertize-function): After everything else, search for expansions in string literals, mark their insides as whitespace syntax and save match data for font-lock. (ruby-font-lock-keywords): Highlight just the 2nd group from expression expansion matches. (ruby-match-expression-expansion): Use the match data saved to the text property in ruby-syntax-propertize-function. * test/automated/ruby-mode-tests.el Change direct font-lock face references to var references. (ruby-interpolation-suppresses-syntax-inside): New test. (ruby-interpolation-inside-percent-literal-with-paren): New failing test.
-
Dmitry Gutov authored
more strict. Add docstring. * test/automated/ruby-mode-tests.el (ruby-indent-singleton-class): Pass. (ruby-indent-inside-heredoc-after-operator) (ruby-indent-inside-heredoc-after-space): New tests.
-
Paul Eggert authored
-
- 13 Nov, 2012 3 commits
-
-
Dmitry Gutov authored
start/end keyword a bit harder. Works with different values of N. Add more comments. (ruby-end-of-block): Update accordingly. * test/automated/ruby-mode-tests.el (ruby-heredoc-font-lock) (ruby-singleton-class-no-heredoc-font-lock) (ruby-add-log-current-method-examples): New tests. (ruby-test-string): Extract from ruby-should-indent-buffer. (ruby-deftest-move-to-block): New macro. Add several move-to-block tests.
-
Dmitry Gutov authored
period before class method names, not after. Remove handling of one impossible case. Add comments. * test/automated/ruby-mode-tests.el (ruby-add-log-current-method-examples): New test. (ruby-test-string): Extract from ruby-should-indent-buffer.
-
Dmitry Gutov authored
font-lock the beginning of singleton class as heredoc. * test/automated/ruby-mode-tests.el (ruby-heredoc-font-lock) (ruby-singleton-class-no-heredoc-font-lock): New tests.
-
- 12 Nov, 2012 1 commit
-
-
Dmitry Gutov authored
backward, always stop at indentation. Reverts the change from 2012-08-12T22:06:56Z!monnier@iro.umontreal.ca. Fixes: debbugs:12851
-
- 08 Nov, 2012 1 commit
-
-
Julien Danjou authored
* progmodes/ruby-mode.el (auto-mode-alist): Add Rakefile in `auto-mode-alist' (Bug#12835).
-
- 24 Sep, 2012 1 commit
-
-
Chong Yidong authored
* generic-x.el (rul-generic-mode): Use font-lock-constant-face. * calendar/calendar.el (calendar-font-lock-keywords): * calendar/diary-lib.el (diary-font-lock-keywords) (diary-fancy-font-lock-keywords): * textmodes/reftex-sel.el (reftex-insert-docstruct): * textmodes/reftex-index.el (reftex-insert-index): * textmodes/reftex-cite.el (reftex-format-bib-entry): * progmodes/ruby-mode.el (ruby-font-lock-keywords): * progmodes/ps-mode.el (ps-mode-font-lock-keywords-1): * progmodes/prolog.el (prolog-font-lock-keywords): * progmodes/idlwave.el (idlwave-idl-keywords): * progmodes/ada-mode.el (ada-font-lock-keywords): * net/snmp-mode.el (snmp-font-lock-keywords-3): Likewise. * font-lock.el (font-lock-reference-face): Use define-obsolete-variable-alias.
-
- 18 Sep, 2012 1 commit
-
-
Dmitry Gutov authored
whitespace after "end". (ruby-do-end-to-brace): Collapse block to one line if it fits within fill-column.
-
- 08 Sep, 2012 3 commits
-
-
Dmitry Gutov authored
not just expect to be at its beginning. Adjust callees. Succeed when do-end block has no space before the pipe character. (ruby-brace-to-do-end): When the original block is one-liner, convert to multiline. Reindent the result. * test/automated/ruby-mode-tests.el: (ruby-toggle-block-to-multiline): New test. (ruby-should-indent-buffer, ruby-toggle-block-to-do-end) (ruby-toggle-block-to-brace): Use buffer-string.
-
Dmitry Gutov authored
previous change.
-
Dmitry Gutov authored
fail when reached LIMIT.
-
- 07 Sep, 2012 3 commits
-
-
Dmitry Gutov authored
(ruby-beginning-of-defun): Only consider 3 keywords defun beginners. (ruby-end-of-defun): Expect that the point is at the beginning of the defun.
-
Dmitry Gutov authored
(ruby-beginning-of-defun): Simplify, allow indentation before block beginning and end keywords. Also, fix accidental change in the former.
-
Dmitry Gutov authored
ruby-beginning-of-indent, simplify, allow all keywords to have indentation before them. (ruby-beginning-of-indent): Adjust for above. Search until the found point is not inside a string or comment. (ruby-font-lock-keywords): Allow symbols to start with "@" character, give them higher priority than variables. (ruby-syntax-propertize-function) (ruby-font-lock-syntactic-keywords): Remove the "not comments" matchers. Expression expansions are not comments when inside a string, and there comment syntax status is irrelevant. (ruby-match-expression-expansion): New function. Check that expression expansion is inside a string, and it's not escaped. (ruby-font-lock-keywords): Use it. * test/automated/ruby-mode-tests.el: New tests (Bug#11613).
-
- 04 Sep, 2012 1 commit
-
-
Dmitry Gutov authored
(ruby-mode-map): Don't bind ruby-electric-brace, ruby-beginning-of-defun, ruby-end-of-defun, ruby-mark-defun, backward-kill-word, reindent-then-newline-and-indent. (ruby-mark-defun): Remove. (ruby-electric-brace): Remove. Obsoleted by electric-indent-chars. (ruby-mode): Set local beginning-of-defun-function and end-of-defun-function values.
-
- 14 Aug, 2012 2 commits
-
-
Dmitry Gutov authored
(ruby-syntax-propertize-function): Use it to recognize regexps. Don't look at the text after regexp, just use the whitelist. * test/indent/ruby.rb: Rearrange examples, add new ones. Fixes: debbugs:6286
-
Dmitry Gutov authored
(ruby-percent-literal-beg-re): New constant. (ruby-syntax-general-delimiters-goto-beg): Rename to `ruby-syntax-enclosing-percent-literal', improve literal type check. (ruby-syntax-propertize-general-delimiters): Rename to `ruby-syntax-propertize-percent-literal', it's a shorter and more popular term. Adjust comments everywhere. (ruby-syntax-propertize-percent-literal): Only propertize when not inside a simple string or comment. When the literal is unclosed, leave the text after it unpropertized. Fixes: debbugs:6286
-
- 12 Aug, 2012 1 commit
-
-
Nobuyoshi Nakada authored
* lisp/progmodes/ruby-mode.el (ruby-mode-map): Remove unnecessary binding for `newline'. (ruby-move-to-block): When moving backward, stop at block opening, not indentation. * progmodes/ruby-mode.el (ruby-brace-to-do-end) (ruby-do-end-to-brace, ruby-toggle-block): New functions. * progmodes/ruby-mode.el (ruby-mode-map): Add binding for `ruby-toggle-block'. * test/automated/ruby-mode-tests.el (ruby-move-to-block-stops-at-opening) (ruby-toggle-block-to-do-end, ruby-toggle-block-to-brace): New test.
-
- 10 Aug, 2012 1 commit
-
-
Dmitry Gutov authored
* lisp/progmodes/ruby-mode.el (ruby-mode-map): Remove deprecated binding (use `M-;' instead). (ruby-expr-beg, ruby-parse-partial): ?, _, and : are symbol constituents, ! is not (but kinda should be). (ruby-singleton-class-p): New function. (ruby-expr-beg, ruby-in-here-doc-p) (ruby-syntax-propertize-heredoc): Use it. (ruby-syntax-propertize-function): Adjust for changes in `ruby-syntax-propertize-heredoc'. * test/automated/ruby-mode-tests.el (ruby-should-indent) (ruby-assert-state): New functions. Add new tests. Fixes: debbugs:12169
-
- 20 Jul, 2012 1 commit
-
-
Dmitry Gutov authored
up inside string symbol literal. * test/automated/ruby-mode-tests.el: New file with one test. Fixes: debbugs:11923
-
- 24 Apr, 2012 3 commits
-
-
Stefan Monnier authored
(ruby-syntax-propertize-regexp): Remove. (ruby-syntax-propertize-function): Split regexp into chunks. Match following code directly. * test/indent/ruby.rb: New file, to test new syntax-propertize code.
-
Dmitry Gutov authored
(ruby-syntax-propertize-regexp): New function. (ruby-syntax-propertize-function): Use it to handle regexp not preceded by a special keyword.
-
Dmitry Gutov authored
(ruby-syntax-general-delimiters-goto-beg) (ruby-syntax-propertize-general-delimiters): New functions. (ruby-syntax-propertize-function): Use them to handle GDL. (ruby-font-lock-keywords): Move old handling of GDL... (ruby-font-lock-syntactic-keywords): .. to here. (ruby-calculate-indent): Adjust indentation for GDL. Fixes: debbugs:6286
-
- 21 Mar, 2012 1 commit
-
-
Dmitry Gutov authored
(ruby-block-end-re, ruby-delimiter, ruby-parse-partial) (ruby-beginning-of-indent): Be more careful with the difference between word-boundary and symbol boundary. (ruby-mode-syntax-table): Make : a symbol constituent. Fixes: debbugs:10786
-
- 11 Jan, 2012 1 commit
-
-
Glenn Morris authored
-
- 05 Jan, 2012 1 commit
-
-
Glenn Morris authored
-
- 15 Mar, 2011 1 commit
-
-
Stefan Monnier authored
* lisp/progmodes/ruby-mode.el (ruby-backward-sexp): * lisp/progmodes/ebrowse.el (ebrowse-draw-file-member-info): * lisp/play/gamegrid.el (gamegrid-make-face): * lisp/play/bubbles.el (bubbles--grid-width, bubbles--grid-height) (bubbles--colors, bubbles--shift-mode, bubbles--initialize-images): * lisp/notifications.el (notifications-notify): * lisp/net/xesam.el (xesam-search-engines): * lisp/net/quickurl.el (quickurl-list-insert): * lisp/vc/vc-hg.el (vc-hg-dir-printer): Fix use of case. * lisp/gnus/auth-source.el (auth-source-netrc-create): * lisp/gnus/message.el (message-yank-original): Fix use of `case'. * lisp/org/org-src.el (org-src-switch-to-buffer): * lisp/org/org-plot.el (org-plot/gnuplot-script, org-plot/gnuplot): * lisp/org/org-mouse.el (org-mouse-agenda-type): * lisp/org/org-freemind.el (org-freemind-node-to-org): * lisp/org/ob-sql.el (org-babel-execute:sql): * lisp/org/ob-exp.el (org-babel-exp-do-export, org-babel-exp-code): * lisp/org/ob-ref.el (org-babel-ref-resolve): Fix use of case.
-
- 27 Jan, 2011 1 commit
-
-
Stefan Monnier authored
Copy change made to ruby-font-lock-syntactic-keywords.
-
- 26 Jan, 2011 1 commit
-
-
Glenn Morris authored
-