mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-07 22:33:50 +00:00
Add a syntax specification to MultiTiddlerFiles
Been playing with the railraod plugin and I thought I'd try my hand at writing some syntax specs for the MultiTiddlerFiles tiddler.
This commit is contained in:
parent
88c2f5a985
commit
1ff1390863
@ -0,0 +1,29 @@
|
|||||||
|
created: 20150621181334837
|
||||||
|
modified: 20150621181400844
|
||||||
|
tags: [[TiddlyWiki on Node.js]]
|
||||||
|
title: MultiTiddlerFileSyntax
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
!!! MultiTiddlerFiles
|
||||||
|
|
||||||
|
<$railroad text="""
|
||||||
|
{<"Header Line">} "Blank Line" {(<"Tiddler Descriptor Line"> | <"Comment Line">)}
|
||||||
|
"""/>
|
||||||
|
|
||||||
|
!!! Header Line
|
||||||
|
|
||||||
|
<$railroad text="""
|
||||||
|
<"Identifier"> ":" {"Whitespace"} <"Value"> "New Line"
|
||||||
|
"""/>
|
||||||
|
|
||||||
|
!!! Tiddler Descriptor Line
|
||||||
|
|
||||||
|
<$railroad text="""
|
||||||
|
<"File Path"> ":" {"Whitespace"} <"Tiddler Title"> "New Line"
|
||||||
|
"""/>
|
||||||
|
|
||||||
|
!!! Comment Line
|
||||||
|
|
||||||
|
<$railroad text="""
|
||||||
|
"#" {("Text" | "Whitespace")} "New Line"
|
||||||
|
"""/>
|
@ -1,5 +1,5 @@
|
|||||||
created: 20140209143652456
|
created: 20140209143652456
|
||||||
modified: 20140912141738408
|
modified: 20150621182140407
|
||||||
tags: [[TiddlyWiki on Node.js]]
|
tags: [[TiddlyWiki on Node.js]]
|
||||||
title: MultiTiddlerFiles
|
title: MultiTiddlerFiles
|
||||||
type: text/vnd.tiddlywiki
|
type: text/vnd.tiddlywiki
|
||||||
@ -30,3 +30,7 @@ Basics/Version: ~TiddlyWiki Version
|
|||||||
This example defines two tiddlers, [[$:/language/ControlPanel/Basics/Caption]] and [[$:/language/ControlPanel/Basics/Version]].
|
This example defines two tiddlers, [[$:/language/ControlPanel/Basics/Caption]] and [[$:/language/ControlPanel/Basics/Version]].
|
||||||
|
|
||||||
If a `title` field is specified in the header then it is treated as a prefix for the individual tiddlers defined in the title.
|
If a `title` field is specified in the header then it is treated as a prefix for the individual tiddlers defined in the title.
|
||||||
|
|
||||||
|
!! Syntax Specification
|
||||||
|
|
||||||
|
{{MultiTiddlerFileSyntax}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user