Strip even more semicolons if followed by a } or ) on the same line

This commit is contained in:
gingerBill committed 2021-08-31 23:47:57 +01:00
1 parent 773a766b83
commit 720884e0f1
36 files changed
+2096 -2096

No files matched your search

+3 -3
View File
@@ -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' }