diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2019-09-03 22:22:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-03 22:22:14 -0400 |
commit | 6b04ea0727973e66227b31caa2ccdcb6f2b4891f (patch) | |
tree | 4d5e4e5d1b6e480bd195d8a9a29703e6475cc2e9 /tools/preproc/asm_file.cpp | |
parent | ecf2097abb1481109578b7b8260fd40606f27abe (diff) | |
parent | 1f4c88c95243e8d75f25d5b7868c837c47aa578d (diff) |
Merge branch 'master' into document-eventscripts
Diffstat (limited to 'tools/preproc/asm_file.cpp')
-rw-r--r-- | tools/preproc/asm_file.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/preproc/asm_file.cpp b/tools/preproc/asm_file.cpp index 383010aa3..98805c952 100644 --- a/tools/preproc/asm_file.cpp +++ b/tools/preproc/asm_file.cpp @@ -475,9 +475,11 @@ void AsmFile::ExpectEmptyRestOfLine() m_lineStart = m_pos; m_lineNum++; } - else if (m_buffer[m_pos] == '\r') + else if (m_buffer[m_pos] == '\r' && m_buffer[m_pos + 1] == '\n') { - RaiseError("only Unix-style LF newlines are supported"); + m_pos += 2; + m_lineStart = m_pos; + m_lineNum++; } else { |