aboutsummaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-07-19 19:40:43 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-07-19 19:40:43 -0700
commit711fe47a7f651f38e090c9a20ecef11feba6f705 (patch)
tree98a3283e7c630919a08f8bd95326ceeb1a93da9e /types.h
parent62e7d654bd70db89cb38e5d9efeb9a9b0e9cf202 (diff)
Overhaul of word boundaries/edges. Now they use \b, which is implemented
in C, and the C code understands UTF8 id chars.
Diffstat (limited to 'types.h')
-rw-r--r--types.h3
1 files changed, 3 insertions, 0 deletions
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,
};