Skip to content

Commit 9241bef

Browse files
committed
Merge branch 'master' of https://github.com/pbonte/roxi
2 parents c50b4c9 + 623d8bf commit 9241bef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib_old/src/parsing/n3.pest

+3-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ NewLine = { "\r" | "\n" }
7575
Var = {"?"~ASCII_ALPHA+~ASCII_ALPHANUMERIC*}
7676
Prefix = {"@prefix"~SPACE+~PrefixIdentifier~":"~SPACE+~"<"~Iri~">"~WS* ~"."~WS*}
7777
PrefixIdentifier = {ASCII_ALPHANUMERIC*}
78-
Prefixed = {PrefixIdentifier ~":"~ASCII_ALPHANUMERIC+}
78+
LocalNameChar = {ASCII_ALPHANUMERIC | "_"}
79+
Prefixed = {PrefixIdentifier ~":"~LocalNameChar+}
7980
Term = {"<"~Iri~">" | Prefixed}
8081
varOrTerm = { Term | Var}
8182
Subject = { Term | Var}
@@ -85,4 +86,4 @@ TP = { WS*~Subject ~WS+~ Property ~WS+~ Object ~WS* ~"."? ~WS* }
8586
Body = {"{"~TP+~"}"}
8687
Head = {"{"~WS*~TP~WS*~"}"}
8788
rule = { Body~WS*~"=>"~WS*~Head~WS*~"."? ~WS*}
88-
document = {Prefix* ~ NewLine* ~rule+}
89+
document = {Prefix* ~ NewLine* ~rule+}

0 commit comments

Comments
 (0)