Skip to content

Commit

Permalink
Merge remote-tracking branch 'ike709/longstringfix' into longstringfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ike709 committed Nov 27, 2024
2 parents 7725623 + d013861 commit 0c224e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DMCompiler/Compiler/DMPreprocessor/DMPreprocessorLexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ public Token NextToken(bool ignoreWhitespace = false) {
var trimEnd = complexDelimiter.Length;
if (TokenTextBuilder[^(complexDelimiter.Length + 1)] == '\n') trimEnd += 1;
if (TokenTextBuilder[^(complexDelimiter.Length + 2)] == '\r') trimEnd += 1;
var trimStart = 3 + complexDelimiter.Length;
var trimStart = 3 + complexDelimiter.Length; // 3 is from these chars: @()
value = TokenTextBuilder.ToString(trimStart, TokenTextBuilder.Length - (trimStart + trimEnd));
}
else if (isLong) {
Expand Down

0 comments on commit 0c224e9

Please sign in to comment.