feat: tumblr grammar with highlights, injections, and tests

This commit is contained in:
2026-05-17 05:50:17 +02:00
parent 1596154284
commit c61fa5c53b
11 changed files with 1950 additions and 55 deletions
+103
View File
@@ -0,0 +1,103 @@
==================
Plain variable
==================
{Title}
---
(template
(content)
(variable
(variable_name))
(content))
==================
Variable with numeric size suffix
==================
{PortraitURL-128}
---
(template
(content)
(variable
(variable_name)
(variable_modifier))
(content))
==================
Variable with named size suffix
==================
{PhotoURL-HighRes}
---
(template
(content)
(variable
(variable_name)
(variable_modifier))
(content))
==================
Multiple variables with text between
==================
<h1>{Title}</h1>
<p>{Description}</p>
---
(template
(content)
(variable
(variable_name))
(content)
(variable
(variable_name))
(content))
==================
Prefixed variable
==================
{color:Background} {font:Body} {image:Header} {text:Tagline}
---
(template
(content)
(variable
(variable_prefix)
(prefix_argument))
(content)
(variable
(variable_prefix)
(prefix_argument))
(content)
(variable
(variable_prefix)
(prefix_argument))
(content)
(variable
(variable_prefix)
(prefix_argument))
(content))
==================
Prefix argument with spaces
==================
{text:Header Subtitle}
---
(template
(content)
(variable
(variable_prefix)
(prefix_argument))
(content))