summaryrefslogtreecommitdiff
path: root/src/lexer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lexer.c')
-rw-r--r--src/lexer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lexer.c b/src/lexer.c
index 77d928e..def4084 100644
--- a/src/lexer.c
+++ b/src/lexer.c
@@ -24,7 +24,7 @@ static bool is_more_input(pit_lexer *st) {
}
static int is_symchar(int c) {
- return c != '(' && c != ')' && c != '.' && c != '\'' && c != '"'
+ return c != '(' && c != ')' && c != '[' && c != ']' && c != '.' && c != '\'' && c != '"'
&& pit_libc_ctype_isprint(c)
&& !pit_libc_ctype_isspace(c);
}