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:
Dmitry Gutov 2016-03-16 15:58:21 +02:00
parent c3ed95b1c5
commit ee9a1f7ee9

View file

@ -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))))