From eaf789901101b8958c2555a0af300d7471707fea Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Wed, 4 Nov 2020 17:37:12 -0700 Subject: preserve more info about declarations --- crowbar_reference_compiler/scanner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crowbar_reference_compiler/scanner.py') diff --git a/crowbar_reference_compiler/scanner.py b/crowbar_reference_compiler/scanner.py index abf274b..7cf5743 100644 --- a/crowbar_reference_compiler/scanner.py +++ b/crowbar_reference_compiler/scanner.py @@ -78,7 +78,7 @@ def scan(code): remaining = remaining[id_match.end():] continue was_constant = False - for constant in [DECIMAL_CONSTANT, BINARY_CONSTANT, OCTAL_CONSTANT, HEX_CONSTANT, FLOAT_CONSTANT, HEX_FLOAT_CONSTANT, CHAR_CONSTANT]: + for constant in [HEX_CONSTANT, BINARY_CONSTANT, OCTAL_CONSTANT, HEX_FLOAT_CONSTANT, FLOAT_CONSTANT, DECIMAL_CONSTANT, CHAR_CONSTANT]: match = constant.match(remaining) if match: result.append(Token('constant', match.group())) -- cgit v1.2.3