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

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

[elpa] externals/phps-mode 2af8abd 206/405: Made TODO notes in algorithm


From: Stefan Monnier
Subject: [elpa] externals/phps-mode 2af8abd 206/405: Made TODO notes in algorithm
Date: Sat, 13 Jul 2019 10:00:14 -0400 (EDT)

branch: externals/phps-mode
commit 2af8abde73f1838667f6acab9b01ad39b23a309c
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>

    Made TODO notes in algorithm
---
 docs/indentation-algorithm.md | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/docs/indentation-algorithm.md b/docs/indentation-algorithm.md
index e8e79ea..43e08cf 100644
--- a/docs/indentation-algorithm.md
+++ b/docs/indentation-algorithm.md
@@ -52,6 +52,8 @@ endforeach;
 
 PHP examples using algorithms defined above, explained each line.
 
+## Basic multi-line if-expression 1
+
 ```php                         // #save indent: 0
 if (function(          // #save indent: 0, #increase push (0 2) indent: 1
     false)                     // #save indent: 1
@@ -60,6 +62,15 @@ if (function(                // #save indent: 0, #increase 
push (0 2) indent: 1
 }                                      // #decrease pop (0 1) indent: 0, #save 
indent: 0
 ```
 
+## Basic multi-line if-expression 2
+
+```php                         // #save indent: 0
+if (function(          // #save indent: 0, #increase push (0 2) indent: 1
+    false)) {          // #decrease pop (0 2) post-indent: 0, #save indent: 1, 
#increase push (0 1) indent: 1 TODO fix ERROR
+    echo true;         // #save indent: 1
+}                                      // #decrease pop (0 1) indent: 0, #save 
indent: 0
+```
+
 ## Inline control structure for if-else
 
 ```php                         // #save indent: 0



reply via email to

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