aboutsummaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-05-11 11:39:42 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-05-11 11:39:42 -0700
commit3359a804c8fe02ea4e9bc1abb7430109affdd535 (patch)
tree3f092a2645d7f25af4610f7830fbc3724ed05abe /types.h
parentb09bd4c746bd9682b29fa4f329c4b8e7effbfd51 (diff)
Converted ^/^^/$/$$ into pattern types instead of builtin definitions
Diffstat (limited to 'types.h')
-rw-r--r--types.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/types.h b/types.h
index 9cbc665..19c6829 100644
--- a/types.h
+++ b/types.h
@@ -28,6 +28,10 @@ enum pattype_e {
BP_REF,
BP_BACKREF,
BP_NODENT,
+ BP_START_OF_FILE,
+ BP_START_OF_LINE,
+ BP_END_OF_FILE,
+ BP_END_OF_LINE,
BP_LEFTRECURSION,
};
@@ -46,7 +50,7 @@ typedef struct pat_s {
struct {
const char *name;
size_t len;
- } name;
+ } ref;
struct {
unsigned char low, high;
} range;