1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-11 18:00:26 +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:
Devin Weaver 2015-06-21 14:30:21 -04:00
parent 88c2f5a985
commit 1ff1390863
2 changed files with 34 additions and 1 deletions

View File

@ -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"
"""/>

View File

@ -1,5 +1,5 @@
created: 20140209143652456
modified: 20140912141738408
modified: 20150621182140407
tags: [[TiddlyWiki on Node.js]]
title: MultiTiddlerFiles
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]].
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}}