Skip to content

Commit

Permalink
Merge pull request #74 from Numpsy/append_char
Browse files Browse the repository at this point in the history
Use StringBuild.Append(char) to append single characters
  • Loading branch information
danipen authored Aug 23, 2024
2 parents c063933 + 5733e4f commit ce83110
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/TextMateSharp/Internal/Grammars/Token.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public override string ToString()
s.Append(EndIndex);
s.Append(", scopes: ");
s.Append(string.Join(", ", Scopes));
s.Append("}");
s.Append('}');
return s.ToString();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/TextMateSharp/Model/DecodeMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public string GetToken(Dictionary<int, bool> tokenMap)
}
else
{
result.Append(".");
result.Append('.');
result.Append(this._tokenIdToToken[i]);
}
}
Expand Down

0 comments on commit ce83110

Please sign in to comment.