Allow capital letters in hex escapes.

This commit is contained in:
cfreksen 2017-10-30 00:15:07 +01:00
parent 89439593e4
commit b6dafa24f1
No known key found for this signature in database
GPG Key ID: EAC13EE101008978
1 changed files with 1 additions and 1 deletions

View File

@ -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)