aboutsummaryrefslogtreecommitdiff
path: root/include/lexer.h
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-08-27 11:25:45 -0400
committerRaghuram Subramani <raghus2247@gmail.com>2025-08-27 11:25:45 -0400
commit4cbb756c732ddea66d395923cc07c0d763024f97 (patch)
tree5c4affa9a7c58f7d4b8ea9a97fc326e115fb6645 /include/lexer.h
parentfd7e478e475fccf9616998ccb62e91534e935ae5 (diff)
format: indent to 4 spaces
Diffstat (limited to 'include/lexer.h')
-rw-r--r--include/lexer.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/include/lexer.h b/include/lexer.h
index f7a851a..543cd93 100644
--- a/include/lexer.h
+++ b/include/lexer.h
@@ -24,38 +24,38 @@
#define DIRECTIVE_IS(key) strncmp(buffer + n, key, strlen(key)) == 0
typedef enum {
- _RAW,
- INCLUDE,
- CONTENT,
- CONTENTFOR,
- ENDCONTENT,
- BODY,
- EACHDO,
- ENDEACHDO,
- PUT,
- PUTPAGE
+ _RAW,
+ INCLUDE,
+ CONTENT,
+ CONTENTFOR,
+ ENDCONTENT,
+ BODY,
+ EACHDO,
+ ENDEACHDO,
+ PUT,
+ PUTPAGE
} directive_e;
typedef struct {
- unsigned int offset;
- unsigned int length;
+ unsigned int offset;
+ unsigned int length;
} key_match_t;
typedef struct {
- directive_e type;
- void *operands;
+ directive_e type;
+ void *operands;
} directive_t;
typedef struct {
- char *key;
- char *content;
+ char *key;
+ char *content;
} contentfor_operand_t;
typedef struct {
- char *source;
- char *key;
- char *content;
- size_t length;
+ char *source;
+ char *key;
+ char *content;
+ size_t length;
} eachdo_operands_t;
list_t *lex(char *buffer);