diff options
| author | gingerBill <bill@gingerbill.org> | 2020-12-06 00:59:23 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-12-06 00:59:23 +0000 |
| commit | dff4c6b66620de4d5efa2ade103b345eec18756e (patch) | |
| tree | 5f7e32c8fdf154c05226c32926bbb0456782a6cb /core/text | |
| parent | 0e9b357a5d663fca72d51402a91fe022ede86ab9 (diff) | |
Clean up logic
Diffstat (limited to 'core/text')
| -rw-r--r-- | core/text/scanner/scanner.odin | 2 |
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); |