Cleaning up parsing / typechecking of calls slightly, adding any vargs
This commit is contained in:
14
lexing.cpp
14
lexing.cpp
@@ -381,13 +381,15 @@ lex__stream(Lexer *lexer){
|
||||
}break;
|
||||
|
||||
case '.': {
|
||||
if(lexc(s) == '.' && lexci(s,1) == '.') {
|
||||
lex_advance(s); lex_advance(s);
|
||||
t.kind = TK_ThreeDots;
|
||||
}
|
||||
else {
|
||||
t.kind = TK_Dot;
|
||||
if(lexc(s) == '.'){
|
||||
lex_advance(s);
|
||||
if(lexci(s,1) == '.') {
|
||||
lex_advance(s);
|
||||
t.kind = TK_ThreeDots;
|
||||
}
|
||||
else t.kind = TK_TwoDots;
|
||||
}
|
||||
else t.kind = TK_Dot;
|
||||
} break;
|
||||
|
||||
case '\'':{
|
||||
|
||||
Reference in New Issue
Block a user