mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Railroad diagram for filter expression now includes named prefixes (#5278)
This commit is contained in:
parent
d50f6b406e
commit
3c3cd4673e
@ -1,5 +1,5 @@
|
|||||||
created: 20150124182421000
|
created: 20150124182421000
|
||||||
modified: 20201208185257875
|
modified: 20201214053032397
|
||||||
tags: [[Filter Syntax]]
|
tags: [[Filter Syntax]]
|
||||||
title: Filter Expression
|
title: Filter Expression
|
||||||
type: text/vnd.tiddlywiki
|
type: text/vnd.tiddlywiki
|
||||||
@ -7,7 +7,7 @@ type: text/vnd.tiddlywiki
|
|||||||
<$railroad text="""
|
<$railroad text="""
|
||||||
[{:
|
[{:
|
||||||
[: [[whitespace|"Filter Whitespace"]] ]
|
[: [[whitespace|"Filter Whitespace"]] ]
|
||||||
("+"|"~"|:-|"-"|"=")
|
("+"|"~"|:-|"-"|"="|":"[[named-prefix|"Named Filter Run Prefix"]])
|
||||||
[[run|"Filter Run"]]
|
[[run|"Filter Run"]]
|
||||||
}]
|
}]
|
||||||
"""/>
|
"""/>
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
created: 20201214044413473
|
||||||
|
modified: 20201214053018350
|
||||||
|
tags:
|
||||||
|
title: Named Filter Run Prefix
|
||||||
|
|
||||||
|
<$set name="prefixlist" filter="""[all[shadows+tiddlers]has[module-type]module-type[filterrunprefix]trim:prefix[$:/core/modules/filterrunprefixes/]trim:suffix[.js]addprefix["]addsuffix["]join[|]addprefix[(]addsuffix[)]]""">
|
||||||
|
<$railroad text=<<prefixlist>>/>
|
||||||
|
</$set>
|
||||||
|
|
||||||
|
A named filter run prefix can precede any [[run|Filter Run]] of a [[filter expression|Filter Expression]] in place of a single-character prefix (`+`, `-` and so on). To create a new filter run prefix, create a [[Javascript module|Modules]] with a [[module-type|ModuleType]] of `filerrunprefix`.
|
Loading…
Reference in New Issue
Block a user