mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 00:57:44 -04:00
fix for windows newlines (#1834)
This commit is contained in:
parent
5a21c823f5
commit
97637d7902
|
@ -343,7 +343,8 @@ Token Reader::get_next_token(TextStream& stream) {
|
|||
// Second - not a special token, so we read until we get a character that ends the token.
|
||||
while (stream.text_remains()) {
|
||||
char next = stream.peek();
|
||||
if (next == ' ' || next == '\n' || next == '\t' || next == ')' || next == ';' || next == '(') {
|
||||
if (next == ' ' || next == '\n' || next == '\t' || next == '\r' || next == ')' || next == ';' ||
|
||||
next == '(') {
|
||||
return t;
|
||||
} else {
|
||||
// not the end, so add to token.
|
||||
|
|
Loading…
Reference in a new issue