Fix local escape parsing

Julien LepillerThu Apr 02 04:28:13+0200 2020

69ce54b

Fix local escape parsing

turtle/parser.scm

116116
(define-peg-pattern hex body (or (range #\0 #\9) (range #\a #\f) (range #\A #\F)))
117117
;; [172s] 	PN_LOCAL_ESC 	::= 	'\' ('_' | '~' | '.' | '-' | '!' | '$' | '&' | "'" | '(' | ')' | '*' | '+' | ',' | ';' | '=' | '/' | '?' | '#' | '@' | '%')
118118
(define-peg-pattern pn-local-esc body
119-
  (and "\\" (or "~" "." "-" "!" "$" "&" "'" "(" ")" "*" "+" "," ";" "=" "/"
120-
                "?" "#" "@" "%" "_")))
119+
  (and (ignore "\\")
120+
       (or "~" "." "-" "!" "$" "&" "'" "(" ")" "*" "+" "," ";" "=" "/"
121+
           "?" "#" "@" "%" "_")))
121122
122123
(define-peg-pattern comment body (and "#" (* (or (range #\x00 #\x09)
123124
                                                 (range #\x0B #\x0C)