From e6ede67282c53c78ec1f321e48a7efff0605bfc1 Mon Sep 17 00:00:00 2001 From: Astrid Elocson Date: Sun, 28 Dec 2014 16:16:24 +0000 Subject: [PATCH] Further improvements suggested by felixhayashi --- .../nodejs/TiddlerFilter Formal Grammar.tid | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/editions/tw5.com/tiddlers/nodejs/TiddlerFilter Formal Grammar.tid b/editions/tw5.com/tiddlers/nodejs/TiddlerFilter Formal Grammar.tid index dd8eb1c5a..24b7501f5 100644 --- a/editions/tw5.com/tiddlers/nodejs/TiddlerFilter Formal Grammar.tid +++ b/editions/tw5.com/tiddlers/nodejs/TiddlerFilter Formal Grammar.tid @@ -9,7 +9,8 @@ type: text/vnd.tiddlywiki * [//x//] denotes an optional //x// * (//x//)... denotes 1 or more instances of //x// * Literal characters are `monospaced` -* Bullets indicate alternative possibilities +* Top-level bullets indicate alternative possibilities +* Second-level bullets are comments and clarifications ;filter * ( [//whitespace//] [`+`|`-`] //run// )... @@ -28,15 +29,11 @@ type: text/vnd.tiddlywiki * [`!`] //operator// //operand// ;operator -* [//keyword//] [//suffix//] -** Terminated by the `[` or `{` or `<` of the operand -** Keywords are drawn from a reserved list -** A suffix on its own implies the keyword `field` +* [//keyword//] [`:` //fieldname//] +** Keywords (`is`, `has`, `tag`, etc) are reserved names that identify filter functions +** A fieldname on its own implies the keyword `field` ** An entirely omitted operator defaults to `title` -;suffix -* `:` [//text//] - ;operand * `[` //text// `]` ** literal -- the text can contain anything but `]`