Skip to content

Commit

Permalink
BracesSameLine default true (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
trobro authored Jul 23, 2022
1 parent ea903d2 commit 8a182f8
Show file tree
Hide file tree
Showing 39 changed files with 83 additions and 113 deletions.
2 changes: 1 addition & 1 deletion assets/charset2_result.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
uescape: "\u0000,\u0001,\uffff"
umlaut: äöüßÄÖÜ
hex: ģ䕧覫췯ꯍ
}
}
2 changes: 1 addition & 1 deletion assets/charset_result.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
ql-ascii: ! "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
js-ascii: ! "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
ml-ascii: ! "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
}
}
2 changes: 1 addition & 1 deletion assets/comments_result.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
str1: 00 # part of the string
str2: 00.0 // part of the string
str3: 02 /* part of the string */
}
}
2 changes: 1 addition & 1 deletion assets/empty_result.hjson
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"": empty
}
}
11 changes: 4 additions & 7 deletions assets/kan_result.hjson
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
numbers:
[
numbers: [
0
0
0
Expand All @@ -13,17 +12,15 @@
12.345
-12.345
]
native:
[
native: [
true
true
false
false
null
null
]
strings:
[
strings: [
x 0
.0
00
Expand All @@ -45,4 +42,4 @@
null null
x null
]
}
}
2 changes: 1 addition & 1 deletion assets/keys_result.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
nl1: test
nl2: test
nl3: test
}
}
2 changes: 1 addition & 1 deletion assets/mltabs_result.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
oki doki
two tabs
'''
}
}
2 changes: 1 addition & 1 deletion assets/oa_result.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
d: {}
}
[]
]
]
11 changes: 4 additions & 7 deletions assets/pass1_result.hjson
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[
JSON Test Pattern pass1
{
"object with 1 member":
[
"object with 1 member": [
array with 1 element
]
}
Expand Down Expand Up @@ -40,8 +39,7 @@
url: http://www.JSON.org/
comment: "// /* <!-- --"
"# -- --> */": " "
" s p a c e d ":
[
" s p a c e d ": [
1
2
3
Expand All @@ -50,8 +48,7 @@
6
7
]
compact:
[
compact: [
1
2
3
Expand All @@ -75,4 +72,4 @@
2
2
rosebud
]
]
2 changes: 1 addition & 1 deletion assets/pass2_result.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
]
]
]
]
]
5 changes: 2 additions & 3 deletions assets/pass3_result.hjson
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"JSON Test Pattern pass3":
{
"JSON Test Pattern pass3": {
"The outermost value": must be an object or array.
"In this test": It is an object.
}
}
}
2 changes: 1 addition & 1 deletion assets/pass4_result.hjson
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10
10
2 changes: 1 addition & 1 deletion assets/passSingle_result.hjson
Original file line number Diff line number Diff line change
@@ -1 +1 @@
allow quoteless strings
allow quoteless strings
2 changes: 1 addition & 1 deletion assets/root_result.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
host: 127.0.0.1
port: 555
}
}
}
2 changes: 1 addition & 1 deletion assets/sorted/charset2_result.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
hex: ģ䕧覫췯ꯍ
uescape: "\u0000,\u0001,\uffff"
umlaut: äöüßÄÖÜ
}
}
2 changes: 1 addition & 1 deletion assets/sorted/charset_result.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
js-ascii: ! "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
ml-ascii: ! "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
ql-ascii: ! "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
}
}
2 changes: 1 addition & 1 deletion assets/sorted/comments_result.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
true1: true
true2: true
true3: true
}
}
2 changes: 1 addition & 1 deletion assets/sorted/empty_result.hjson
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"": empty
}
}
11 changes: 4 additions & 7 deletions assets/sorted/kan_result.hjson
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
{
native:
[
native: [
true
true
false
false
null
null
]
numbers:
[
numbers: [
0
0
0
Expand All @@ -22,8 +20,7 @@
12.345
-12.345
]
strings:
[
strings: [
x 0
.0
00
Expand All @@ -45,4 +42,4 @@
null null
x null
]
}
}
2 changes: 1 addition & 1 deletion assets/sorted/keys_result.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
unquoted_key: test
"{": test
"}": test
}
}
2 changes: 1 addition & 1 deletion assets/sorted/mltabs_result.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
oki doki
two tabs
'''
}
}
2 changes: 1 addition & 1 deletion assets/sorted/oa_result.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
d: {}
}
[]
]
]
11 changes: 4 additions & 7 deletions assets/sorted/pass1_result.hjson
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[
JSON Test Pattern pass1
{
"object with 1 member":
[
"object with 1 member": [
array with 1 element
]
}
Expand All @@ -13,8 +12,7 @@
false
null
{
" s p a c e d ":
[
" s p a c e d ": [
1
2
3
Expand All @@ -34,8 +32,7 @@
array: []
backslash: \
comment: "// /* <!-- --"
compact:
[
compact: [
1
2
3
Expand Down Expand Up @@ -75,4 +72,4 @@
2
2
rosebud
]
]
2 changes: 1 addition & 1 deletion assets/sorted/pass2_result.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
]
]
]
]
]
5 changes: 2 additions & 3 deletions assets/sorted/pass3_result.hjson
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"JSON Test Pattern pass3":
{
"JSON Test Pattern pass3": {
"In this test": It is an object.
"The outermost value": must be an object or array.
}
}
}
2 changes: 1 addition & 1 deletion assets/sorted/pass4_result.hjson
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10
10
2 changes: 1 addition & 1 deletion assets/sorted/passSingle_result.hjson
Original file line number Diff line number Diff line change
@@ -1 +1 @@
allow quoteless strings
allow quoteless strings
2 changes: 1 addition & 1 deletion assets/sorted/root_result.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
host: 127.0.0.1
port: 555
}
}
}
8 changes: 3 additions & 5 deletions assets/sorted/stringify1_result.hjson
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
noquotes:
{
noquotes: {
close1: a}
close2: a]
comment1: a#str
Expand All @@ -15,8 +14,7 @@
num3: 1e10e,2
num4: -1e--10,
}
quotes:
{
quotes: {
close1: "1}"
close1b: "1 }"
close2: "1]"
Expand Down Expand Up @@ -46,4 +44,4 @@
punc6: ":"
punc6b: ":foo"
}
}
}
5 changes: 2 additions & 3 deletions assets/sorted/strings2_result.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"key \"": a key in single quotes
"key 2": a key in single quotes
key1: a key in single quotes
text:
[
text: [
single quoted string
'''You need quotes for escapes'''
" untrimmed "
Expand All @@ -26,4 +25,4 @@
"\n \n \n \n"
"\t\n"
]
}
}
14 changes: 5 additions & 9 deletions assets/sorted/strings_result.hjson
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
arr:
[
arr: [
one
two
three
Expand Down Expand Up @@ -35,10 +34,8 @@

'''
multiline4: ←→±≠Я
not:
{
array:
[
not: {
array: [
1
2
3
Expand All @@ -62,8 +59,7 @@
notml2: " \n"
notml3: "\n \n \n \n"
notml4: "\t\n"
special:
{
special: {
false: "false"
minus: "-3"
null: "null"
Expand All @@ -78,4 +74,4 @@
text4a: " untrimmed "
text4b: " untrimmed"
text4c: "untrimmed "
}
}
2 changes: 1 addition & 1 deletion assets/sorted/trail_result.hjson
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
foo: 0 -- this string starts at 0 and ends at 1, preceding and trailing whitespace is ignored -- 1
}
}
Loading

0 comments on commit 8a182f8

Please sign in to comment.