Skip to content

Commit 37644ab

Browse files
committed
test comment before several types
* array * double * string * true * false * null
1 parent 66eb72f commit 37644ab

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

test/data/test_comment_01.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.={}
2+
// Comment for array
23
.test=[]
34
.test[0]={}
45
.test[0].a="aaa"

test/data/test_comment_01.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"test":
3+
// Comment for array
34
[
45
{ "a" : "aaa" }, // Comment for a
56
{ "b" : "bbb" }, // Comment for b

test/data/test_comment_02.expected

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,13 @@
1111
// Multiline comment cpp-style
1212
// Second line
1313
.cpp-test.c=3
14-
.cpp-test.d=4
14+
// Comment before double
15+
.cpp-test.d=4.1
16+
// Comment before string
17+
.cpp-test.e="e-string"
18+
// Comment before true
19+
.cpp-test.f=true
20+
// Comment before false
21+
.cpp-test.g=false
22+
// Comment before null
23+
.cpp-test.h=null

test/data/test_comment_02.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212
// Multiline comment cpp-style
1313
// Second line
1414
"c" : 3,
15-
"d" : 4
15+
// Comment before double
16+
"d" : 4.1,
17+
// Comment before string
18+
"e" : "e-string",
19+
// Comment before true
20+
"f" : true,
21+
// Comment before false
22+
"g" : false,
23+
// Comment before null
24+
"h" : null
1625
}
1726
}

0 commit comments

Comments
 (0)