mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 18:25:51 +01:00
added not() expression
This commit is contained in:
@@ -255,6 +255,16 @@ function getExpression(tokens, parsingContext, level = 0) {
|
||||
|
||||
return exp;
|
||||
}
|
||||
else if (token === 'not') {
|
||||
i += 1;
|
||||
|
||||
if (!Array.isArray(tokens[i])) {
|
||||
parsingContext.addError(`not keyword should be followed by sub-expression in parenthesis, got ${tokens[i]} instead`);
|
||||
continue;
|
||||
}
|
||||
|
||||
expressions.push(new NotExp(getExpression(tokens[i], parsingContext, level++)));
|
||||
}
|
||||
else if (token === 'note') {
|
||||
i++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user