From d5d6c93da41b47f483e250b212e1d4459a962893 Mon Sep 17 00:00:00 2001 From: Josh Wolfe Date: Fri, 8 Apr 2016 17:32:06 -0700 Subject: [PATCH] fix parsing of hex literal 0xb --- src/tokenizer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp index 516e666cd..700090eec 100644 --- a/src/tokenizer.cpp +++ b/src/tokenizer.cpp @@ -947,12 +947,15 @@ void tokenize(Buf *buf, Tokenization *out) { switch (c) { case 'b': t.cur_tok->radix = 2; + t.state = TokenizeStateNumber; break; case 'o': t.cur_tok->radix = 8; + t.state = TokenizeStateNumber; break; case 'x': t.cur_tok->radix = 16; + t.state = TokenizeStateNumber; break; default: // reinterpret as normal number