Support safe navigation operator in non-SMIE indentation code
* lisp/progmodes/ruby-mode.el (ruby-calculate-indent):
Support safe navigation operator in non-SMIE indentation code.
Cherry-picked from
68e16ddd79
.
This commit is contained in:
parent
c3ed95b1c5
commit
ee9a1f7ee9
1 changed files with 1 additions and 1 deletions
|
@ -1374,7 +1374,7 @@ delimiter."
|
|||
(goto-char ruby-indent-point)
|
||||
(beginning-of-line)
|
||||
(skip-syntax-forward " ")
|
||||
(if (looking-at "\\.[^.]")
|
||||
(if (looking-at "\\.[^.]\\|&\\.")
|
||||
(+ indent ruby-indent-level)
|
||||
indent))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue