mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-27 10:30:28 +00:00
1ff1390863
Been playing with the railraod plugin and I thought I'd try my hand at writing some syntax specs for the MultiTiddlerFiles tiddler.
30 lines
578 B
Plaintext
30 lines
578 B
Plaintext
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"
|
|
"""/>
|