Did the funny golang thing

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
Slendi 2024-02-28 16:22:20 +02:00
parent eb258c8f4c
commit 9521ba6f5f

View File

@ -80,7 +80,6 @@ lexer_should_not_emit_semicolon :: proc(lexer: ^Lexer) -> bool {
@(private = "file") @(private = "file")
lexer_skip_whitespace :: proc(lexer: ^Lexer) { lexer_skip_whitespace :: proc(lexer: ^Lexer) {
// FIXME: Do the funny golang thing where newlines are semicolons based on some rules
for lexer.char == ' ' || lexer.char == '\t' || lexer.char == '\r' || lexer.char == '\n' { for lexer.char == ' ' || lexer.char == '\t' || lexer.char == '\r' || lexer.char == '\n' {
if lexer.char == '\n' { if lexer.char == '\n' {
if !lexer_should_not_emit_semicolon(lexer) { if !lexer_should_not_emit_semicolon(lexer) {