From b6dafa24f11a68f6da3918bf117a7f8c360b8a38 Mon Sep 17 00:00:00 2001 From: cfreksen Date: Mon, 30 Oct 2017 00:15:07 +0100 Subject: [PATCH] Allow capital letters in hex escapes. --- parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.py b/parser.py index ba292cb..b1fdc23 100644 --- a/parser.py +++ b/parser.py @@ -112,7 +112,7 @@ class LLVMParser(object): self.current_string += '\\' def t_string_hex(self, t): - r'\\[0-9a-f][0-9a-f]' + r'\\[0-9a-fA-F][0-9a-fA-F]' code = int(t.value[1:], 16) self.current_string += chr(code)