Skip to content

Commit

Permalink
fix callisto with CRLF files
Browse files Browse the repository at this point in the history
  • Loading branch information
MESYETI committed Jan 5, 2025
1 parent 952a5ee commit 0c90e3b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/lexer.d
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ class Lexer {
switch (code[i]) {
case ' ':
case '\t':
case '\r':
case '\n': {
AddReading();
break;
Expand Down Expand Up @@ -237,5 +238,10 @@ class Lexer {
}
// TODO: here
// what??
// 2025: i know what this is for

if (reading.strip() != "") {
AddReading();
}
}
}

0 comments on commit 0c90e3b

Please sign in to comment.