Skip to content

Commit ae3bfb0

Browse files
committed
Move diagram.md and maml.abnf to spec v0.1
1 parent 21a7266 commit ae3bfb0

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

maml.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import peggy from 'peggy'
55
let parse
66

77
beforeAll(async () => {
8-
const rules = await parseFile('maml.abnf')
8+
const rules = await parseFile('spec/v0.1/maml.abnf')
99
const text = rules.toFormat()
1010
const doParse = peggy.generate(text, {startRule: 'maml'})?.parse
1111
if (!doParse) throw new Error('Parser generation failed')

spec/v0.1.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,4 +303,7 @@ ABNF Grammar
303303
A formal description of MAML's syntax in ABNF format
304304
([RFC 5234](https://www.ietf.org/rfc/rfc5234.txt)).
305305

306-
<<< @/maml.abnf
306+
A visual representation of the MAML syntax is available in the
307+
[syntax diagram](/spec/v0.1/diagram.md).
308+
309+
<<< @/spec/v0.1/maml.abnf

diagram.md renamed to spec/v0.1/diagram.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# MAML's Syntax Diagrams
1+
# MAML v0.1 Syntax Diagrams
22

33
<style>
44
svg {
@@ -8,12 +8,12 @@
88
}
99

1010
svg * {
11-
stroke: var(--vp-c-text-1) !important;
11+
stroke: var(--vp-c-text-3) !important;
1212
}
1313

1414
svg text {
15-
stroke: var(--vp-c-text-1) !important;
16-
stroke-width: 0.5 !important;
15+
fill: var(--vp-c-text-1) !important;
16+
stroke-width: 0 !important;
1717
}
1818
</style>
1919

File renamed without changes.

0 commit comments

Comments
 (0)