tests for note properties

This commit is contained in:
zadam
2020-05-23 20:52:55 +02:00
parent bb03a8714a
commit a2e1fb35b8
5 changed files with 151 additions and 4 deletions

View File

@@ -86,7 +86,7 @@ function getExpression(tokens, parsingContext) {
return parseRelation(tokens[i]);
}
if (tokens[i] === 'title') {
if (PropertyComparisonExp.isProperty(tokens[i])) {
const propertyName = tokens[i];
const operator = tokens[i + 1];
const comparedValue = tokens[i + 2];
@@ -101,6 +101,8 @@ function getExpression(tokens, parsingContext) {
return new PropertyComparisonExp(propertyName, comparator);
}
parsingContext.addError(`Unrecognized note property "${tokens[i]}"`);
}
function parseLabel(labelName) {