aboutsummaryrefslogtreecommitdiff
path: root/src/tokenizer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tokenizer.c')
-rw-r--r--src/tokenizer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tokenizer.c b/src/tokenizer.c
index efc9eee..99ffce5 100644
--- a/src/tokenizer.c
+++ b/src/tokenizer.c
@@ -177,6 +177,12 @@ TslToken tsl_tokenizer_next(TslTokenizer *self) {
} else if(c == '}') {
++self->code_index;
return TSL_TOKEN_RBRACE;
+ } else if(c == '[') {
+ ++self->code_index;
+ return TSL_TOKEN_LBRACKET;
+ } else if(c == ']') {
+ ++self->code_index;
+ return TSL_TOKEN_RBRACKET;
} else if(c == '\0') {
return TSL_TOKEN_END_OF_FILE;
} else {