Update and ascii-sort string escapes in peg

This commit is contained in:
sogaiu 2023-07-08 17:54:00 +09:00
parent 026c64fa01
commit 5a5e70b001
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@
(set "!$%&*+-./:<?=>@^_|"))
:token (some :symchars)
:hex (range "09" "af" "AF")
:escape (* "\\" (+ (set "ntrvzf0e\"\\")
:escape (* "\\" (+ (set `"'0?\abefnrtvz`)
(* "x" :hex :hex)
(error (constant "bad hex escape"))))
:comment (/ '(* "#" (any (if-not (+ "\n" -1) 1))) (constant :comment))