From 6ec154b57da547881297fd229fdb20b5aeec74a7 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 12 Jun 2011 21:51:08 +0200 Subject: updated for version 7.3.213 Problem: Javascript object literal is not indented correctly. Solution: Make a special case for when "J1" is in 'cino'. (Luc Deschenaux) --- src/testdir/test3.in | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'src/testdir/test3.in') diff --git a/src/testdir/test3.in b/src/testdir/test3.in index 1b5cf893b..1cfd8f23e 100644 --- a/src/testdir/test3.in +++ b/src/testdir/test3.in @@ -1492,10 +1492,11 @@ baz(); STARTTEST :set cino=N-s -/namespaces +/^NAMESPACESTART =/^NAMESPACEEND ENDTEST +NAMESPACESTART /* valid namespaces with normal indent */ namespace { @@ -1560,6 +1561,27 @@ namespace111111111 NAMESPACEEND +STARTTEST +:set cino=J1 +/^JSSTART +=/^JSEND +ENDTEST + +JSSTART +var bar = { +foo: { +that: this, +some: ok, +}, +"bar":{ +a : 2, +b: "123abc", +x: 4, +"y": 5 +} +} +JSEND + STARTTEST :g/^STARTTEST/.,/^ENDTEST/d :1;/start of AUTO/,$wq! test.out -- cgit v1.2.3