aboutsummaryrefslogtreecommitdiff
path: root/syntax/def.peg
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2025-05-26 13:05:25 +0200
committerJonas Smedegaard <dr@jones.dk>2025-05-26 13:05:40 +0200
commitc20684579782d2ebbdf08b85618b4c01cdb93adb (patch)
tree6a014e67e5aa8774b046dc69223f9862f2477e3e /syntax/def.peg
parenta3eb7e16a727849c58cbabe3b1b9ef64b6f740f6 (diff)
simplify syntax for SemWord
Diffstat (limited to 'syntax/def.peg')
-rw-r--r--syntax/def.peg3
1 files changed, 1 insertions, 2 deletions
diff --git a/syntax/def.peg b/syntax/def.peg
index 0c99c80..9f260d7 100644
--- a/syntax/def.peg
+++ b/syntax/def.peg
@@ -62,8 +62,7 @@ BlockX <- LinkDefinition
/ Paragraph
PrefixDefinition <- '{' CuriePrefix '}' ':' _? SemWord NEWLINE
KeyWordX <- SemWord / Identifier / Class / Attribute / '-'
-SemWord <- SEMPREFIX '<' ![<>] PRINTABLES '>'
- / SEMPREFIX Curie
+SemWord <- SEMPREFIX ('<' ![<>] PRINTABLES '>' / Curie)
SEMPREFIX <- [.=]
# RDF CURIE