aboutsummaryrefslogtreecommitdiff
path: root/include/token.h
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-01-26 22:39:41 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-01-26 22:39:41 +0300
commit49c2589427e0f81bea68ccba1a95c6890e10538d (patch)
tree0633bc052552831b3860d1d4816bbee7b85d6313 /include/token.h
parent4665a620775da64ec7280762979a9fc6fa37c0bc (diff)
downloadroscha-master.tar.gz
roscha-master.zip
Fix break tag parsing and code formatHEADmaster
auto-formatted the code with clang-format.
Diffstat (limited to 'include/token.h')
-rw-r--r--include/token.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/token.h b/include/token.h
index edff1d2..6c5eb5e 100644
--- a/include/token.h
+++ b/include/token.h
@@ -61,9 +61,9 @@ enum token_type {
/* A token in our template */
struct token {
enum token_type type;
- struct slice literal;
- size_t line;
- size_t column;
+ struct slice literal;
+ size_t line;
+ size_t column;
};
/* Intialize our keywords hashmap */
@@ -73,7 +73,7 @@ void token_init_keywords(void);
enum token_type token_lookup_ident(const struct slice *ident);
/* Return a C string with the token type name */
-inline const char *token_type_print(enum token_type);
+const char *token_type_print(enum token_type);
/* Concatenate this token to a sds string */
sds token_string(struct token *, sds str);