Handle separators in their own functions and fix missing handling of tabs

This commit is contained in:
Guillaume Gomez 2022-03-30 11:32:03 +02:00
parent da829d8d9d
commit e03a950747
4 changed files with 235 additions and 4 deletions

View file

@ -27,6 +27,7 @@ const QUERY = [
"aaaaa<>b",
"fn:aaaaa<>b",
"->a<>b",
"a<->",
];
const PARSED = [
@ -282,4 +283,13 @@ const PARSED = [
userQuery: '->a<>b',
error: 'Expected `,` or ` `, found `b`',
},
{
elems: [],
foundElems: 0,
original: 'a<->',
returned: [],
typeFilter: -1,
userQuery: 'a<->',
error: 'Unexpected `-` after `<`',
},
];