diff options
| author | gingerBill <bill@gingerbill.org> | 2021-08-31 23:47:57 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-08-31 23:47:57 +0100 |
| commit | 720884e0f1d6f15c248f8fbe7b86aa146cedac72 (patch) | |
| tree | 046cb8ca71dbce74ba3337806f00dabd3c71285b /core/text/scanner | |
| parent | 773a766b83c327069f3634ad982e29e9e06119e9 (diff) | |
Strip even more semicolons if followed by a `}` or `)` on the same line
Diffstat (limited to 'core/text/scanner')
| -rw-r--r-- | core/text/scanner/scanner.odin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/text/scanner/scanner.odin b/core/text/scanner/scanner.odin index bd51b7bf5..72cdac76b 100644 --- a/core/text/scanner/scanner.odin +++ b/core/text/scanner/scanner.odin @@ -266,9 +266,9 @@ scan_identifier :: proc(s: ^Scanner) -> rune { return ch } -@(private) lower :: proc(ch: rune) -> rune { return ('a' - 'A') | ch; } -@(private) is_decimal :: proc(ch: rune) -> bool { return '0' <= ch && ch <= '9'; } -@(private) is_hex :: proc(ch: rune) -> bool { return '0' <= ch && ch <= '9' || 'a' <= lower(ch) && lower(ch) <= 'f'; } +@(private) lower :: proc(ch: rune) -> rune { return ('a' - 'A') | ch } +@(private) is_decimal :: proc(ch: rune) -> bool { return '0' <= ch && ch <= '9' } +@(private) is_hex :: proc(ch: rune) -> bool { return '0' <= ch && ch <= '9' || 'a' <= lower(ch) && lower(ch) <= 'f' } |