]> code.delx.au - gnu-emacs-elpa/commitdiff
Added description of indentation style
authormooz <stillpedant@gmail.com>
Sun, 5 Sep 2010 15:38:57 +0000 (00:38 +0900)
committermooz <stillpedant@gmail.com>
Sun, 5 Sep 2010 15:38:57 +0000 (00:38 +0900)
README.md

index 2487c82b04b55788a3cd63032e370ef1566800e5..19cd7e1488eb4f239ee6ca8fd66bf97b61b3eed4 100644 (file)
--- a/README.md
+++ b/README.md
@@ -39,6 +39,32 @@ Support for expression closure in property value
         fire: function () _fire()
     };
 
+Supported more popular indentation style
+----------------------------------------
+
+When js2-consistent-level-indent-inner-bracket-p is non-nil
+    
+    [foo, bar, baz].forEach(function (v) {
+        if (validate(v))
+            process(v);
+    });
+    
+    [a, b, c].some(function (v) {
+        return validate(v);
+    });
+
+When js2-consistent-level-indent-inner-bracket-p is nil
+(Same as original js2-mode's indentation)
+
+    [foo, bar, baz].forEach(function (v) {
+                                if (validate(v))
+                                    process(v);
+                            });
+    
+    [a, b, c].some(function (v) {
+                       return validate(v);
+                   });
+
 Fixed the odd indentation of "else if" with no braces
 -----------------------------------------------------