diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-06-20 19:39:38 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-06-20 19:39:38 +0530 |
commit | 9f844fa3a032fc92e69cb5028a9b6e8a5ef0a235 (patch) | |
tree | 60a8a6542bf2f0534d839a710ede816d7695a5d6 /include/lexer.h | |
parent | e4c5d83e418f1a045758339779fb49b635db2bdb (diff) |
(lexer): add support for contentfor key
Diffstat (limited to 'include/lexer.h')
-rw-r--r-- | include/lexer.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/lexer.h b/include/lexer.h index 8f7aab1..48deb0c 100644 --- a/include/lexer.h +++ b/include/lexer.h @@ -1,7 +1,7 @@ #ifndef __LEXER_H #define __LEXER_H -typedef enum { INCLUDE } directive_e; +typedef enum { INCLUDE, CONTENTFOR } directive_e; typedef struct { unsigned int offset; @@ -13,6 +13,11 @@ typedef struct { void *operands; } directive_t; +typedef struct { + char *key; + char *content; +} contentfor_operands_t; + directive_t *find_directive(char *content, key_match_t *match); key_match_t *find_next_key(char *buffer); |