* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Indent after + used as
an instruction.
This commit is contained in:
parent
c7e36328c6
commit
df74c4be16
3 changed files with 14 additions and 8 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-10-21 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* progmodes/ruby-mode.el (ruby-smie-rules): Indent after + used as
|
||||
an instruction.
|
||||
|
||||
2013-10-21 Dmitry Gutov <dgutov@yandex.ru>
|
||||
|
||||
* progmodes/ruby-mode.el (ruby-smie-grammar): Add (almost) all infix operators.
|
||||
|
@ -12,15 +17,14 @@
|
|||
|
||||
Allow comma separated lists after Java "implements".
|
||||
|
||||
* progmodes/cc-engine.el (c-backward-over-enum-header): parse
|
||||
commas.
|
||||
* progmodes/cc-engine.el (c-backward-over-enum-header):
|
||||
Parse commas.
|
||||
* progmodes/cc-fonts.el (c-basic-matchers-after): Remove comma
|
||||
from a "disallowed" list in enum fontification.
|
||||
|
||||
2013-10-20 Johan Bockgård <bojohan@gnu.org>
|
||||
|
||||
* startup.el (default-frame-background-mode): Remove unused
|
||||
defvar.
|
||||
* startup.el (default-frame-background-mode): Remove unused defvar.
|
||||
|
||||
* progmodes/verilog-mode.el (verilog-mode): Don't set
|
||||
comment-indent-function globally.
|
||||
|
@ -168,8 +172,8 @@
|
|||
* ielm.el (ielm-map): Bind M-RET to ielm-return-for-effect.
|
||||
(ielm-return-for-effect): New command.
|
||||
(ielm-send-input): Accept optional `for-effect' parameter.
|
||||
(ielm-eval-input): Accept optional `for-effect' parameter. Bind
|
||||
`standard-output' to stream we create using
|
||||
(ielm-eval-input): Accept optional `for-effect' parameter.
|
||||
Bind `standard-output' to stream we create using
|
||||
`ielm-standard-output-impl'. Suppress printing result when
|
||||
`for-effect'.
|
||||
(ielm-standard-output-impl): New function.
|
||||
|
|
|
@ -498,6 +498,8 @@ explicitly declared in magic comment."
|
|||
(`(:before . ,(or `"else" `"then" `"elsif" `"rescue" `"ensure")) 0)
|
||||
(`(:before . ,(or `"when"))
|
||||
(if (not (smie-rule-sibling-p)) 0)) ;; ruby-indent-level
|
||||
(`(:after . "+") ;FIXME: Probably applicable to most infix operators.
|
||||
(if (smie-rule-parent-p ";") ruby-indent-level))
|
||||
))
|
||||
|
||||
(defun ruby-imenu-create-index-in-block (prefix beg end)
|
||||
|
|
|
@ -186,11 +186,11 @@ def foo
|
|||
bar
|
||||
end
|
||||
|
||||
# Examples below still fail with `ruby-use-smie' on:
|
||||
|
||||
foo +
|
||||
bar
|
||||
|
||||
# Examples below still fail with `ruby-use-smie' on:
|
||||
|
||||
foo = [1, 2, 3].map do |i|
|
||||
i + 1
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue