You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert.deepStrictEqual(parseToStr(input),"Lexing errors:\n\nUnexpected token '|' at offset 59. Did you mean '||'?\nUnexpected token '|' at offset 68. Did you mean '||'?\nUnexpected token '/ && resourceExtname in fooBar' at offset 86\n\n --- \nParsing errors:\n\nUnexpected error: SyntaxError: Invalid flags supplied to RegExp constructor ' && resourceExtname in fooBar' for token EOF at offset 116.\n");
assert.deepStrictEqual(parseToStr(input),"Lexing errors:\n\nUnexpected token ''' at offset 93\n");
196
+
assert.deepStrictEqual(parseToStr(input),"Lexing errors:\n\nUnexpected token ''' at offset 93\n\n --- \nParsing errors:\n\nUnexpected error: SyntaxError: Invalid flags supplied to RegExp constructor ''' for token EOF at offset 94.\n");
168
197
});
169
198
170
199
test('vim<c-r> == 1 && vim<2<=3',()=>{
171
200
constinput='vim<c-r> == 1 && vim<2<=3';
172
-
assert.deepStrictEqual(parseToStr(input),"Lexing errors:\n\nUnexpected token '=' at offset 23. Did you mean '==' or '=~'?\n");// FIXME
201
+
assert.deepStrictEqual(parseToStr(input),"Lexing errors:\n\nUnexpected token '=' at offset 23. Did you mean '==' or '=~'?\n\n --- \nParsing errors:\n\nUnexpected '=' at offset 23.\n");// FIXME
173
202
});
174
203
175
204
test(`foo && 'bar`,()=>{
176
205
constinput=`foo && 'bar`;
177
-
assert.deepStrictEqual(parseToStr(input),"Lexing errors:\n\nUnexpected token ''bar' at offset 7. Did you forget to close the string?\n");
206
+
assert.deepStrictEqual(parseToStr(input),"Lexing errors:\n\nUnexpected token ''bar' at offset 7. Did you forget to close the string?\n\n --- \nParsing errors:\n\nExpected 'true', 'false', '(', KEY, KEY '=~' regex, KEY [ ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value ] but got ''bar' at offset 7.\n");
0 commit comments