mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 02:59:54 +00:00
Update and ascii-sort string escapes in peg
This commit is contained in:
parent
026c64fa01
commit
5a5e70b001
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user