Did the funny golang thing
Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
parent
eb258c8f4c
commit
9521ba6f5f
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user