emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/phps-mode db7121941c 156/212: Passing indention on line


From: Christian Johansson
Subject: [elpa] externals/phps-mode db7121941c 156/212: Passing indention on line after not equals condition
Date: Wed, 26 Jan 2022 01:51:18 -0500 (EST)

branch: externals/phps-mode
commit db7121941c79e9c70c9677fe7fcdf9e0b12a79ef
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]