mirror of
https://github.com/janet-lang/janet
synced 2025-07-07 12:32:55 +00:00
Add :h default peg class, as well as ad \v to whitespace.
This commit is contained in:
parent
de9951594e
commit
6c917f686a
@ -1953,20 +1953,24 @@
|
|||||||
that should make it easier to write more complex patterns."
|
that should make it easier to write more complex patterns."
|
||||||
~@{:d (range "09")
|
~@{:d (range "09")
|
||||||
:a (range "az" "AZ")
|
:a (range "az" "AZ")
|
||||||
:s (set " \t\r\n\0\f")
|
:s (set " \t\r\n\0\f\v")
|
||||||
:w (range "az" "AZ" "09")
|
:w (range "az" "AZ" "09")
|
||||||
|
:h (range "09" "af")
|
||||||
:S (if-not :s 1)
|
:S (if-not :s 1)
|
||||||
:W (if-not :w 1)
|
:W (if-not :w 1)
|
||||||
:A (if-not :a 1)
|
:A (if-not :a 1)
|
||||||
:D (if-not :d 1)
|
:D (if-not :d 1)
|
||||||
|
:H (if-not :h 1)
|
||||||
:d+ (some :d)
|
:d+ (some :d)
|
||||||
:a+ (some :a)
|
:a+ (some :a)
|
||||||
:s+ (some :s)
|
:s+ (some :s)
|
||||||
:w+ (some :w)
|
:w+ (some :w)
|
||||||
|
:h+ (some :h)
|
||||||
:d* (any :d)
|
:d* (any :d)
|
||||||
:a* (any :a)
|
:a* (any :a)
|
||||||
:w* (any :w)
|
:w* (any :w)
|
||||||
:s* (any :s)})
|
:s* (any :s)
|
||||||
|
:h* (any :h)})
|
||||||
|
|
||||||
###
|
###
|
||||||
###
|
###
|
||||||
|
Loading…
x
Reference in New Issue
Block a user