0
0
mirror of https://github.com/vim/vim.git synced 2025-11-14 23:04:02 -05:00

updated for version 7.4.350

Problem:    Using C indenting for Javascript does not work well for a {} block
            inside parenthesis.
Solution:   When looking for a matching paren ignore one that is before the
            start of a {} block.
This commit is contained in:
Bram Moolenaar
2014-07-02 18:27:48 +02:00
parent dab70c63e1
commit 81439a6d1b
4 changed files with 39 additions and 2 deletions

View File

@@ -1950,6 +1950,10 @@ ENDTEST
:set cino=j1,J1
/^JSSTART
=/^JSEND
ENDTEST
JSSTART
(function($){
if (cond &&
cond) {

View File

@@ -1728,6 +1728,10 @@ JSEND
JSSTART
(function($){
if (cond &&
cond) {
stmt;
}
var class_name='myclass';
function private_method() {