aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-12-06 00:59:23 +0000
committergingerBill <bill@gingerbill.org>2020-12-06 00:59:23 +0000
commitdff4c6b66620de4d5efa2ade103b345eec18756e (patch)
tree5f7e32c8fdf154c05226c32926bbb0456782a6cb
parent0e9b357a5d663fca72d51402a91fe022ede86ab9 (diff)
Clean up logic
-rw-r--r--core/text/scanner/scanner.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/text/scanner/scanner.odin b/core/text/scanner/scanner.odin
index bbd2090b6..30fa961a8 100644
--- a/core/text/scanner/scanner.odin
+++ b/core/text/scanner/scanner.odin
@@ -487,7 +487,7 @@ scan :: proc(s: ^Scanner) -> (tok: rune) {
}
} else if is_decimal(ch) {
- if s.flags >= {.Scan_Ints, .Scan_Floats} {
+ if .Scan_Ints in s.flags || .Scan_Floats in s.flags {
tok, ch = scan_number(s, ch, false);
} else {
ch = advance(s);