mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
allow \r's in .s files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136908 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2a66cea1b8
commit
0ecd825e54
@ -146,7 +146,7 @@ AsmToken AsmLexer::LexLineComment() {
|
||||
// FIXME: This is broken if we happen to a comment at the end of a file, which
|
||||
// was .included, and which doesn't end with a newline.
|
||||
int CurChar = getNextChar();
|
||||
while (CurChar != '\n' && CurChar != '\n' && CurChar != EOF)
|
||||
while (CurChar != '\n' && CurChar != '\r' && CurChar != EOF)
|
||||
CurChar = getNextChar();
|
||||
|
||||
if (CurChar == EOF)
|
||||
|
Loading…
x
Reference in New Issue
Block a user