Skip to content

Commit

Permalink
Update DMCompiler/Compiler/DMPreprocessor/DMPreprocessorLexer.cs
Browse files Browse the repository at this point in the history
Co-authored-by: wixoa <[email protected]>
  • Loading branch information
ike709 and wixoaGit authored Jan 27, 2025
1 parent 0c224e9 commit a746d10
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions DMCompiler/Compiler/DMPreprocessor/DMPreprocessorLexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,7 @@ public Token NextToken(bool ignoreWhitespace = false) {
if (TokenTextBuilder[^(complexDelimiter.Length + 2)] == '\r') trimEnd += 1;
var trimStart = 3 + complexDelimiter.Length; // 3 is from these chars: @()
value = TokenTextBuilder.ToString(trimStart, TokenTextBuilder.Length - (trimStart + trimEnd));
}
else if (isLong) {
} else if (isLong) {
// Long strings ignore a newline immediately after the @{" and before the "}
if (TokenTextBuilder[3] == '\r')
TokenTextBuilder.Remove(3, 1);
Expand Down

0 comments on commit a746d10

Please sign in to comment.