aboutsummaryrefslogtreecommitdiff
path: root/syntax/def.peg
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2025-05-26 10:18:42 +0200
committerJonas Smedegaard <dr@jones.dk>2025-05-26 10:32:10 +0200
commit75d54ad0c5d9bdcb02e9934401f1a23bc0645de7 (patch)
treeab7fb3dd8e20b29c4c71c35533384728b5cae580 /syntax/def.peg
parentcaee6369ebdee3d34f066042dea833ee37922481 (diff)
add syntax PrefixDefinition; improve text on Markdown
Diffstat (limited to 'syntax/def.peg')
-rw-r--r--syntax/def.peg1
1 files changed, 1 insertions, 0 deletions
diff --git a/syntax/def.peg b/syntax/def.peg
index 11ce1ab..ab809ac 100644
--- a/syntax/def.peg
+++ b/syntax/def.peg
@@ -49,6 +49,7 @@ NEWLINE <- '\r\n'
# Semantic Markdown
# @see <https://source.jones.dk/semantic-markdown/about/>
+PrefixDefinition <- '{' CuriePrefix '}' ':' _? SemWord NEWLINE
AnnotatedWordsX <- '[' Words ']'
('{' (SemWords / ![{}] PlainWords) '}')
SemWords <- SemWord (_ SemWord)*