summaryrefslogtreecommitdiff
path: root/runtime/doc/indent.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-07-11 17:23:02 +0200
committerBram Moolenaar <Bram@vim.org>2010-07-11 17:23:02 +0200
commit3acfc30409eb8e3721d888f2e7111111057fe937 (patch)
tree22ca3ab3536417810973c22fd67caf32bf453945 /runtime/doc/indent.txt
parent9028b10dfe3a00e505bf1b720f515dab91913b5e (diff)
downloadvim-3acfc30409eb8e3721d888f2e7111111057fe937.zip
Improve Javascript indenting. Add "J" flag to 'cino'. (Hari Kumar G)
Diffstat (limited to 'runtime/doc/indent.txt')
-rw-r--r--runtime/doc/indent.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/runtime/doc/indent.txt b/runtime/doc/indent.txt
index 355c90996..410fe38ea 100644
--- a/runtime/doc/indent.txt
+++ b/runtime/doc/indent.txt
@@ -431,6 +431,24 @@ assume a 'shiftwidth' of 4.
}
});
<
+ *javascript-cinoptions* *javascript-indenting*
+ JN Indent JavaScript object declarations correctly by not confusing
+ them with labels. The value 'N' is currently unused but must be
+ non-zero (e.g. 'J1'). >
+
+ var bar = {
+ foo: {
+ that: this,
+ some: ok,
+ },
+ "bar":{
+ a : 2,
+ b: "123abc",
+ x: 4,
+ "y": 5
+ }
+ }
+<
)N Vim searches for unclosed parentheses at most N lines away.
This limits the time needed to search for parentheses. (default
20 lines).