branch: externals/phps-mode
commit 2af8abde73f1838667f6acab9b01ad39b23a309c
Author: Christian Johansson <[email protected]>
Commit: Christian Johansson <[email protected]>
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