From e6bb7697f9d7c25c7b77da1a3b746092ad7f3e9d Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Sun, 16 Jun 2013 09:52:49 +0200 Subject: [PATCH] reclassify_token should only deal with tokens < TOKEN_START... should fix #113 --- parser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parser.c b/parser.c index c0a7f3b..71242ac 100644 --- a/parser.c +++ b/parser.c @@ -1810,6 +1810,8 @@ static bool parser_close_paren(parser_t *parser, shunt *sy) static void parser_reclassify_token(parser_t *parser) { size_t i; + if (parser->tok >= TOKEN_START) + return; for (i = 0; i < operator_count; ++i) { if (!strcmp(parser_tokval(parser), operators[i].op)) { parser->tok = TOKEN_OPERATOR;