aboutsummaryrefslogtreecommitdiff
path: root/crowbar_reference_compiler/scanner.py
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2020-11-04 17:37:12 -0700
committerMelody Horn <melody@boringcactus.com>2020-11-04 17:37:12 -0700
commiteaf789901101b8958c2555a0af300d7471707fea (patch)
tree322eae2398cd6b3a994ba3d8bdc7f13d1f1b442d /crowbar_reference_compiler/scanner.py
parent68c303c285032e2f0398352b70eb79736a72296f (diff)
downloadreference-compiler-eaf789901101b8958c2555a0af300d7471707fea.tar.gz
reference-compiler-eaf789901101b8958c2555a0af300d7471707fea.zip
preserve more info about declarations
Diffstat (limited to 'crowbar_reference_compiler/scanner.py')
-rw-r--r--crowbar_reference_compiler/scanner.py2
1 files changed, 1 insertions, 1 deletions
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()))