From 6c917f686ac6f9342e5dc2d29dd769dfcbd02dd9 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Wed, 24 Jun 2020 08:40:23 -0500 Subject: [PATCH] Add :h default peg class, as well as ad \v to whitespace. --- src/boot/boot.janet | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/boot/boot.janet b/src/boot/boot.janet index ac8cbf90..c20b4a9a 100644 --- a/src/boot/boot.janet +++ b/src/boot/boot.janet @@ -1953,20 +1953,24 @@ that should make it easier to write more complex patterns." ~@{:d (range "09") :a (range "az" "AZ") - :s (set " \t\r\n\0\f") + :s (set " \t\r\n\0\f\v") :w (range "az" "AZ" "09") + :h (range "09" "af") :S (if-not :s 1) :W (if-not :w 1) :A (if-not :a 1) :D (if-not :d 1) + :H (if-not :h 1) :d+ (some :d) :a+ (some :a) :s+ (some :s) :w+ (some :w) + :h+ (some :h) :d* (any :d) :a* (any :a) :w* (any :w) - :s* (any :s)}) + :s* (any :s) + :h* (any :h)}) ### ###