Skip to content
Snippets Groups Projects
Commit e9783309 authored by Henning Glawe's avatar Henning Glawe
Browse files

add match group for logical literals (t/f)

parent cab12289
No related branches found
No related tags found
No related merge requests found
...@@ -42,6 +42,7 @@ cRE_literal = re.compile( ...@@ -42,6 +42,7 @@ cRE_literal = re.compile(
r'0x(?P<hex_int>[0-9a-fA-F]+)', r'0x(?P<hex_int>[0-9a-fA-F]+)',
r'0(?P<octal_int>[0-7]+)', r'0(?P<octal_int>[0-7]+)',
r'(?P<decimal_int>[+-]?\d+)', # integer with optional sign r'(?P<decimal_int>[+-]?\d+)', # integer with optional sign
r'(?P<logical>[tf])(?=\W)',
]) + r')' ]) + r')'
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment