| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
Backtrack one char if the global/char-literal var matcher hits
inside a string. The next char could be the beginning of an
expression expansion.
* test/automated/ruby-mode-tests.el
(ruby-interpolation-after-dollar-sign): New test.
|
| |
|
|
|
|
|
| |
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight more
Module methods.
Fixes: debbugs:17216
|
| |
|
|
|
|
| |
special globals with font-lock-builtin-face.
Fixes: debbugs:17057
|
| |
|
|
|
|
| |
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function):
Don't propertize `?' or `!' as symbol constituent when after
colon.
|
| |
|
|
|
|
|
|
|
| |
* lisp/progmodes/ruby-mode.el (ruby-expression-expansion-re):
Match special global variables without curlies, too.
(ruby-font-lock-keywords): Simplify the matcher for special global
variables. Don't require a non-word character after the variable.
Fixes: debbugs:17057
|
| |
|
|
|
| |
* lisp/progmodes/ruby-mode.el (ruby-smie-rules):
Add indentation rule for ` @ '.
|
| |
|
|
|
|
| |
multiple adjacent negation chars.
Fixes: debbugs:17004
|
| |
|
|
|
|
| |
regexp options.
Fixes: debbugs:16914
|
| |
|
|
|
|
|
| |
inconsistent second element of the list returned by
`smie-indent--parent'.
(ruby-font-lock-keywords): Disqualify any identifier before `=' as
method call.
|
| |
|
|
|
|
| |
after `=>'.
Fixes: debbugs:16811
|
| | |
|
| |
|
|
| |
`protected' and `public' can also be called without arguments.
|
| |
|
|
|
|
| |
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): For built-ins
that require arguments, check that they're followed by something that
looks like argument.
|
| |
|
|
|
|
|
| |
* lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Check for
`:' before binary operators. Don't check for `:'
before `[' and `(', or their syntax status. A percent literal
can't end with either.
|
| |
|
|
|
|
|
|
|
| |
* etc/NEWS: Mention `ruby-align-chained-calls'.
* lisp/progmodes/ruby-mode.el (ruby-align-chained-calls): Update the
docstring and add :version tag.
Fixes: debbugs:16593
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* lisp/progmodes/ruby-mode.el (ruby-align-chained-calls): New option.
(ruby-smie-grammar): Make "." right-associative. Make its priority
lower than the ternary and all binary operators.
(ruby-smie-rules): Indent "(" relative to the first non-"."
parent, or the first "." parent at indentation. Use
`ruby-align-chained-calls' for indentation of "." tokens.
* test/automated/ruby-mode-tests.el (ruby-align-chained-calls):
New test.
Fixes: debbugs:16593
|
| |
|
|
|
|
|
|
|
|
| |
* lisp/progmodes/ruby-mode.el (ruby-alignable-keywords): New constant.
(ruby-align-to-stmt-keywords): Change the default value. Use
`ruby-alignable-keywords' to generate the possible customization
choices.
(ruby-smie-rules): Instead of using a hardcoded list of alignable
keywords, check against the value of `ruby-alignable-keywords'
(http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01439.html).
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* apropos.el (apropos-match-face):
* calculator.el (calculator-displayer):
* dabbrev.el (dabbrev-search-these-buffers-only):
* face-remap.el (buffer-face-mode-face):
* simple.el (yank-handled-properties):
* emacs-lisp/testcover.el (testcover-potentially-1value-functions):
* mail/footnote.el (footnote-mode-line-string, footnote-prefix):
* mail/hashcash.el (hashcash-accept-resources, hashcash-program)
(hashcash-double-spend-database):
* progmodes/ruby-mode.el (ruby-deep-indent-paren)
(ruby-deep-indent-paren-style):
* textmodes/flyspell.el (flyspell-auto-correct-binding):
* textmodes/rst.el (rst-toc-indent, rst-toc-insert-style)
(rst-toc-insert-number-separator, rst-toc-insert-max-level):
* vc/pcvs-defs.el (cvs-minor-mode-prefix):
* erc/erc-log.el (erc-log-file-coding-system):
* gnus/gnus-sieve.el (gnus-sieve-select-method):
* gnus/gravatar.el (gravatar-automatic-caching, gravatar-cache-ttl)
(gravatar-rating, gravatar-size):
* gnus/message.el (message-minibuffer-local-map):
* gnus/sieve-manage.el (sieve-manage-authenticators)
(sieve-manage-authenticator-alist):
Specify custom types.
* mail/hashcash.el (hashcash-program): Rename from hashcash-path.
Update callers.
|
| |
|
|
| |
comments. Handle electric indent after typing `?' and `!'.
|
| |
|
|
|
| |
after `{'. We need it after block openers, and it doesn't seem
to hurt after hash openers.
|
| |
|
|
|
|
|
|
|
| |
* lisp/progmodes/ruby-mode.el (ruby--at-indentation-p): New function,
extracted from `ruby-smie-rules'.
(ruby--electric-indent-chars): New variable.
(ruby--electric-indent-p): New function.
(ruby-mode): Use `electric-indent-functions' instead of
`electric-indent-chars'.
|
| |
|
|
|
| |
docstring.
(ruby-smie-rules): Indent plus one level after `=>'.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
option.
(ruby-smie--indent-to-stmt-p): Use it.
(ruby-smie-rules): Revert the logic in the handling of `when'.
Expand the `begin' clause to handle `ruby-align-to-stmt-keywords'.
(ruby-deep-arglist, ruby-deep-indent-paren)
(ruby-deep-indent-paren-style): Update docstrings to note that the
vars don't have any effect with SMIE.
* test/automated/ruby-mode-tests.el: Add tests for
`ruby-align-to-stmt-keywords'.
* test/indent/ruby.rb: Update examples to reflect the lack of change in
default indentation of `begin' blocks.
Fixes: debbugs:16182
|
| |
|
|
| |
keywords to their parent.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
first arg to be a string (fixed dead code), or an operator symbol.
(ruby-smie--forward-token): Tokenize ` @ ' before strings and
operator symbols.
(ruby-smie-rules): Remove parent token check in the `.' clause, it
did nothing. Don't respond to `(:after ".")', it will be called
with :before anyway. Remove the ` @ ' rule, it didn't seem to
change anything. Only return indentation for binary operators
when they are hanging. De-dent opening paren when its parent is
`.', otherwise it looks bad when the dot is not at bol or eol.
Fixes: debbugs:16182
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Return nil before
open-paren tokens when preceded by a open-paren, too.
(ruby-smie-rules): Handle virtual indentation after open-paren
tokens specially. If there is code between it and eol, return the
column where is starts.
* test/indent/ruby.rb: New examples.
|
| |
|
|
| |
after the end of a percent literal.
|
| |
|
|
|
|
| |
Handle caret-delimited strings.
Fixes: debbugs:16079
|
| |
|
|
|
|
|
| |
`ruby-use-smie' is t, use `smie-forward-sexp' instead of
`ruby-parse-partial'.
Fixes: debbugs:16078
|
| |
|
|
| |
up the last change.
|
| |
|
|
|
|
|
|
|
| |
* lisp/progmodes/ruby-mode.el (ruby-mode-syntax-table): Don't modify
syntax for `?'.
(ruby-expr-beg): Expect that `!' will have syntax class "symbol"
where appropriate already.
(ruby-syntax-propertize-function): Propertize `?' and `!' at the
end of method names.
|
| |
|
|
| |
(ruby-encoding-magic-comment-style): Add :version.
|
| |
|
|
| |
Improve docstring.
|
| |
|
|
|
| |
Change default to "# encoding: %s" to differentiate it from the
default Ruby encoding comment template.
|
| |
|
|
|
|
| |
interpolation curlies.
Fixes: debbugs:15914
|
| |
|
|
| |
nil/self/true/false with "end of symbol".
|
| |
|
|
| |
Fix and simplify encoding comment update logic.
|
| |
|
|
| |
Add support for always inserting an utf-8 encoding comment.
|
| |
|
|
|
|
|
|
|
| |
binary "|" operator and closing block args delimiter. Remove
FIXME comment referring to Ruby 1.8-only syntax.
(ruby-smie--implicit-semi-p): Not after "|" operator.
(ruby-smie--closing-pipe-p): New function.
(ruby-smie--forward-token, ruby-smie--backward-token): Use it.
(ruby-smie-rules): Indent after "|".
|
| |
|
|
|
|
| |
Not after "||".
(ruby-smie-rules): Indent non-hanging "begin" blocks as part of
their parent.
|
| |
|
|
| |
(ruby-font-lock-keywords): Use backquote.
|
| |
|
|
| |
Fix incorrect case conditions.
|
| |
|
|
| |
(ruby-smie--backward-token): Only consider full-string matches.
|
| |
|
|
|
| |
`ruby-encoding-magic-comment-style' to control the
style of the auto-inserted encoding comment.
|
| |
|
|
| |
`smie-backward-sexp' with token argument.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
of "and", "or", "&&" and "||".
(ruby-smie--args-separator-p): Prohibit keyword "do" as the first
argument. Prohibit opening curly brace because it could only be a
block opener in that position.
(ruby-smie--forward-token, ruby-smie--backward-token): Separate
"|" from "&" or "*" going after it. That can happen in block
arguments.
(ruby-smie--indent-to-stmt): New function, seeks the end of
previous statement or beginning of buffer.
(ruby-smie-rules): Use it.
(ruby-smie-rules): Check if there's a ":" before a curly block
opener candidate; if there is, it's a hash.
* test/indent/ruby.rb: New examples.
|