mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-22 07:09:54 +00:00
Fix bug#17050
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Add indentation rule for ` @ '.
This commit is contained in:
parent
dada060d9f
commit
1fc8f6559a
@ -1,3 +1,8 @@
|
||||
2014-03-21 Dmitry Gutov <dgutov@yandex.ru>
|
||||
|
||||
* progmodes/ruby-mode.el (ruby-smie-rules):
|
||||
Add indentation rule for ` @ '. (Bug#17050)
|
||||
|
||||
2014-03-21 Juanma Barranquero <lekktu@gmail.com>
|
||||
|
||||
* align.el (align-regexp): Remove superfluous backslash.
|
||||
|
@ -650,6 +650,10 @@ It is used when `ruby-encoding-magic-comment-style' is set to `custom'."
|
||||
;; because we want to reject hanging tokens at bol, too.
|
||||
(unless (or (eolp) (forward-comment 1))
|
||||
(cons 'column (current-column)))))
|
||||
(`(:before . " @ ")
|
||||
(save-excursion
|
||||
(skip-chars-forward " \t")
|
||||
(cons 'column (current-column))))
|
||||
(`(:before . "do") (ruby-smie--indent-to-stmt))
|
||||
(`(:before . ".")
|
||||
(if (smie-rule-sibling-p)
|
||||
|
@ -379,3 +379,20 @@ def qux
|
||||
'd' => %w(e f)
|
||||
}
|
||||
}
|
||||
|
||||
# Bug#17050
|
||||
|
||||
return render json: {
|
||||
errors: { base: [message] },
|
||||
copying: copying
|
||||
},
|
||||
status: 400
|
||||
|
||||
top test(
|
||||
some,
|
||||
top,
|
||||
test)
|
||||
|
||||
foo bar, {
|
||||
tee: qux
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user