mirror of
https://github.com/janet-lang/janet
synced 2025-04-27 13:13:14 +00:00
Merge pull request #1216 from sogaiu/tweak-test-grammar-peg
Update and ascii-sort string escapes in peg
This commit is contained in:
commit
5437744126
@ -367,7 +367,7 @@
|
|||||||
(set "!$%&*+-./:<?=>@^_|"))
|
(set "!$%&*+-./:<?=>@^_|"))
|
||||||
:token (some :symchars)
|
:token (some :symchars)
|
||||||
:hex (range "09" "af" "AF")
|
:hex (range "09" "af" "AF")
|
||||||
:escape (* "\\" (+ (set "ntrvzf0e\"\\")
|
:escape (* "\\" (+ (set `"'0?\abefnrtvz`)
|
||||||
(* "x" :hex :hex)
|
(* "x" :hex :hex)
|
||||||
(error (constant "bad hex escape"))))
|
(error (constant "bad hex escape"))))
|
||||||
:comment (/ '(* "#" (any (if-not (+ "\n" -1) 1))) (constant :comment))
|
:comment (/ '(* "#" (any (if-not (+ "\n" -1) 1))) (constant :comment))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user