File tree Expand file tree Collapse file tree 1 file changed +35
-4
lines changed Expand file tree Collapse file tree 1 file changed +35
-4
lines changed Original file line number Diff line number Diff line change 78
78
"expression" : " `9`" ,
79
79
"result" : 9
80
80
},
81
- {
82
- "expression" : " `42 `" ,
83
- "result" : 42
84
- },
85
81
{
86
82
"comment" : " Escaping a backtick in quotes" ,
87
83
"expression" : " `\" foo\\ `bar\" `" ,
136
132
"comment" : " Literal on RHS of subexpr not allowed" ,
137
133
"expression" : " foo.`\" bar\" `" ,
138
134
"error" : " syntax"
135
+ },
136
+ {
137
+ "comment" : " Literal with all valid leading and trailing JSON whitespace" ,
138
+ "expression" : " ` \t\n\r {\" foo\" : true} \t\n\r `" ,
139
+ "result" : {"foo" : true }
140
+ },
141
+ {
142
+ "comment" : " Literal with non-JSON whitespace U+000C FORM FEED" ,
143
+ "expression" : " `0\f `" ,
144
+ "error" : " syntax"
145
+ },
146
+ {
147
+ "comment" : " Literal with non-JSON whitespace U+0085 NEXT LINE" ,
148
+ "expression" : " `0\u0085 `" ,
149
+ "error" : " syntax"
150
+ },
151
+ {
152
+ "comment" : " Literal with non-JSON whitespace U+00A0 NO-BREAK SPACE" ,
153
+ "expression" : " `0\u00A0 `" ,
154
+ "error" : " syntax"
155
+ },
156
+ {
157
+ "comment" : " Literal with non-JSON whitespace U+1680 OGHAM SPACE MARK" ,
158
+ "expression" : " `0\u1680 `" ,
159
+ "error" : " syntax"
160
+ },
161
+ {
162
+ "comment" : " Literal with non-JSON whitespace U+2028 LINE SEPARATOR" ,
163
+ "expression" : " `0\u2028 `" ,
164
+ "error" : " syntax"
165
+ },
166
+ {
167
+ "comment" : " Literal with non-JSON whitespace U+3000 IDEOGRAPHIC SPACE" ,
168
+ "expression" : " `0\u3000 `" ,
169
+ "error" : " syntax"
139
170
}
140
171
]
141
172
},
You can’t perform that action at this time.
0 commit comments