Add x64 emitter tests
This commit is contained in:
19
lex.c
19
lex.c
@@ -44,24 +44,7 @@ void lex_advance(Lexer *lex) {
|
||||
lex->column++;
|
||||
}
|
||||
|
||||
if (*lex->at == '\\') {
|
||||
lex->at += 1;
|
||||
if ((lex->at < lex->end) && *lex->at == '\n') {
|
||||
lex->at += 1;
|
||||
lex->line += 1; lex->column = 0;
|
||||
} else if ((lex->at < lex->end) && *lex->at == '\r') {
|
||||
lex->at += 1;
|
||||
if ((lex->at < lex->end) && *lex->at == '\n') {
|
||||
lex->at += 1;
|
||||
lex->line += 1; lex->column = 0;
|
||||
} else {
|
||||
panicf("after \\r missing \\n");
|
||||
}
|
||||
} else {
|
||||
panicf("stray '\\' without follow up new line");
|
||||
}
|
||||
|
||||
} else if (*lex->at == '\n') {
|
||||
if (*lex->at == '\n') {
|
||||
lex->preproc = false;
|
||||
lex->at += 1;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user