From 711fe47a7f651f38e090c9a20ecef11feba6f705 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 19 Jul 2021 19:40:43 -0700 Subject: Overhaul of word boundaries/edges. Now they use \b, which is implemented in C, and the C code understands UTF8 id chars. --- types.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'types.h') diff --git a/types.h b/types.h index 78232ef..4dd32a5 100644 --- a/types.h +++ b/types.h @@ -14,6 +14,8 @@ // BP virtual machine pattern types enum pattype_e { BP_ANYCHAR = 1, + BP_ID_START, + BP_ID_CONTINUE, BP_STRING, BP_RANGE, BP_NOT, @@ -33,6 +35,7 @@ enum pattype_e { BP_START_OF_LINE, BP_END_OF_FILE, BP_END_OF_LINE, + BP_WORD_BOUNDARY, BP_LEFTRECURSION, BP_ERROR, }; -- cgit v1.2.3