Handle separators in their own functions and fix missing handling of tabs
This commit is contained in:
@@ -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 `<`',
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user