branch: externals/phps-mode commit db7121941c79e9c70c9677fe7fcdf9e0b12a79ef Author: Christian Johansson <christ...@cvj.se> Commit: Christian Johansson <christ...@cvj.se>
Passing indention on line after not equals condition --- phps-mode-indent.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phps-mode-indent.el b/phps-mode-indent.el index dad22b2b38..c08a5d9386 100644 --- a/phps-mode-indent.el +++ b/phps-mode-indent.el @@ -443,9 +443,11 @@ ;; function myFunction( ;; $abc = 3 ;; ) { + ;; or + ;; $abc != 3 ((and (string-match-p - "^[\t ]*$[a-zA-Z0-9_]+[\t ]*[^=]*=\\($\\|[\t ]+.*[^,;]$\\)" + "^[\t ]*$[a-zA-Z0-9_]+[\t ]*[^=!]*=\\($\\|[\t ]+.*[^,;]$\\)" previous-line-string) (not current-line-starts-with-closing-bracket))