Allow : in local part of prefix names
authorGavin Carothers <gavin@carothers.name>
Tue, 24 Apr 2012 11:18:48 -0700
changeset 252 7074e1c448e0
parent 251 97caa695bdb3
child 253 1dbb75eadc1d
Allow : in local part of prefix names
rdf-turtle/index.html
rdf-turtle/turtle.bnf
--- a/rdf-turtle/index.html	Sat Mar 31 19:58:10 2012 -0400
+++ b/rdf-turtle/index.html	Tue Apr 24 11:18:48 2012 -0700
@@ -786,7 +786,7 @@
 
 	      <li>
 		<p>
-		  <em id="reserved">reserved character escape sequences</em> consist of a '\' followed by one of <code>~.-!$&amp;'()*+,;=:/?#@%_</code> and represent the character to the right of the '\'.
+		  <em id="reserved">reserved character escape sequences</em> consist of a '\' followed by one of <code>~.-!$&amp;'()*+,;=/?#@%_</code> and represent the character to the right of the '\'.
 		</p>
 	      </li>
 
--- a/rdf-turtle/turtle.bnf	Sat Mar 31 19:58:10 2012 -0400
+++ b/rdf-turtle/turtle.bnf	Tue Apr 24 11:18:48 2012 -0700
@@ -133,8 +133,9 @@
  | [#F900-#FDCF] 
  | [#FDF0-#FFFD] 
  | [#10000-#EFFFF] 
-[96s] PN_CHARS_U ::= PN_CHARS_BASE 
- | "_" 
+[96s] PN_CHARS_U  ::=  PN_CHARS_BASE 
+ | '_' 
+ | ':'
 [98s] PN_CHARS ::= PN_CHARS_U 
  | "-" 
  | [0-9] 
@@ -151,7 +152,7 @@
 
 [162s] HEX ::= [0-9] | [A-F] | [a-f]
 
-[163s] PN_LOCAL_ESC ::= '\\' ( '_' | '~' | '.' | '-' | '!' | '$' | '&' | "'" | '(' | ')' | '*' | '+' | ',' | ';' | '=' | ':' | '/' | '?' | '#' | '@' | '%' )
+[163s] PN_LOCAL_ESC ::= '\\' ( '_' | '~' | '.' | '-' | '!' | '$' | '&' | "'" | '(' | ')' | '*' | '+' | ',' | ';' | '=' | '/' | '?' | '#' | '@' | '%' )
  
 @pass ::= [ \t\r\n]+ 
  | "#" [^\r\n]* 
\ No newline at end of file