From a746d102f6fe1ad3b95a45a486b1d29cf9e89b04 Mon Sep 17 00:00:00 2001 From: ike709 Date: Sun, 26 Jan 2025 22:04:33 -0600 Subject: [PATCH] Update DMCompiler/Compiler/DMPreprocessor/DMPreprocessorLexer.cs Co-authored-by: wixoa --- DMCompiler/Compiler/DMPreprocessor/DMPreprocessorLexer.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/DMCompiler/Compiler/DMPreprocessor/DMPreprocessorLexer.cs b/DMCompiler/Compiler/DMPreprocessor/DMPreprocessorLexer.cs index 886272470e..e24db0b3a0 100644 --- a/DMCompiler/Compiler/DMPreprocessor/DMPreprocessorLexer.cs +++ b/DMCompiler/Compiler/DMPreprocessor/DMPreprocessorLexer.cs @@ -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);