summaryrefslogtreecommitdiff
path: root/src/testdir
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/test3.in24
-rw-r--r--src/testdir/test3.ok17
2 files changed, 40 insertions, 1 deletions
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
{
@@ -1561,6 +1562,27 @@ 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
ENDTEST
diff --git a/src/testdir/test3.ok b/src/testdir/test3.ok
index cf4f85deb..8475aff9f 100644
--- a/src/testdir/test3.ok
+++ b/src/testdir/test3.ok
@@ -1337,6 +1337,7 @@ void func(void)
}
+NAMESPACESTART
/* valid namespaces with normal indent */
namespace
{
@@ -1401,3 +1402,19 @@ namespace111111111
NAMESPACEEND
+
+JSSTART
+var bar = {
+ foo: {
+ that: this,
+ some: ok,
+ },
+ "bar":{
+ a : 2,
+ b: "123abc",
+ x: 4,
+ "y": 5
+ }
+}
+JSEND
+