0
0
mirror of https://github.com/vim/vim.git synced 2025-10-06 05:44:14 -04:00

Improve Javascript indenting. Add "J" flag to 'cino'. (Hari Kumar G)

This commit is contained in:
Bram Moolenaar
2010-07-11 17:23:02 +02:00
parent 9028b10dfe
commit 3acfc30409
6 changed files with 63 additions and 23 deletions

View File

@@ -430,6 +430,24 @@ assume a 'shiftwidth' of 4.
do_something();
}
});
<
*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

View File

@@ -1089,11 +1089,10 @@ Patch to support horizontal scroll wheel in GTK. Untested. (Bjorn Winckler,
Vim 7.3:
- soon: remove UF_VERSION_CRYPT_PREV and UF_VERSION_PREV.
- Soon: remove UF_VERSION_CRYPT_PREV and UF_VERSION_PREV.
- Conceal feature: no update when moving to another window. (Dominique Pelle,
2010 Jul 5) Vince will look into it.
Patches to possibly include:
- Patch to support :browse for more commands. (Lech Lorens, 2009 Jul 18)
- Patch to improve javascript indenting. (Hari Kumar G, 2010 May 22)
- Patch to use return value of 'formatexpr'. (James Vega, 2010 Jun 16)
- Patch for gtk main_loop() to enable GtkFileChooser. (James Vega, 2010 Jun 28)