summaryrefslogtreecommitdiff
path: root/src/lexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lexer.h')
-rw-r--r--src/lexer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lexer.h b/src/lexer.h
index 472ee10..a091fb7 100644
--- a/src/lexer.h
+++ b/src/lexer.h
@@ -20,6 +20,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
+#include "string_view.h"
typedef enum {
TOKEN_NAME,
@@ -35,7 +36,7 @@ typedef enum {
typedef struct token_t {
token_kind_t kind;
- char *value;
+ string_view_t value;
char *filepath;
uint32_t row;
uint32_t col;