Allow capital letters in hex escapes.
This commit is contained in:
parent
89439593e4
commit
b6dafa24f1
|
@ -112,7 +112,7 @@ class LLVMParser(object):
|
||||||
self.current_string += '\\'
|
self.current_string += '\\'
|
||||||
|
|
||||||
def t_string_hex(self, t):
|
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)
|
code = int(t.value[1:], 16)
|
||||||
self.current_string += chr(code)
|
self.current_string += chr(code)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user