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:
@@ -1950,6 +1950,10 @@ ENDTEST
|
||||
:set cino=j1,J1
|
||||
/^JSSTART
|
||||
=/^JSEND
|
||||
ENDTEST
|
||||
|
||||
JSSTART
|
||||
(function($){
|
||||
|
||||
if (cond &&
|
||||
cond) {
|
||||
|
||||
@@ -1728,6 +1728,10 @@ JSEND
|
||||
JSSTART
|
||||
(function($){
|
||||
|
||||
if (cond &&
|
||||
cond) {
|
||||
stmt;
|
||||
}
|
||||
var class_name='myclass';
|
||||
|
||||
function private_method() {
|
||||
|
||||
Reference in New Issue
Block a user