Skip to content

Commit 53105cf

Browse files
Fix speeling
1 parent b89ade7 commit 53105cf

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

src/EditorFeatures/CSharp/CompleteStatement/CompleteStatementCommandHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ private static bool TryGetStartingNode(
172172

173173
startingNode = tokenOnLeft.GetRequiredParent();
174174

175-
// If the caret is before an opening delimiter or after a closing delimeter,
175+
// If the caret is before an opening delimiter or after a closing delimiter,
176176
// start analysis with node outside of delimiters.
177177
//
178178
// Examples,

src/EditorFeatures/CSharp/RawStringLiteral/RawStringLiteralCommandHandler_TypeChar.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private bool ExecuteCommandWorker(TypeCharCommandArgs args, Action nextCommandHa
5353
var textChangeOpt =
5454
TryGenerateInitialEmptyRawString(caret.Value, cancellationToken) ??
5555
TryGrowInitialEmptyRawString(caret.Value, cancellationToken) ??
56-
TryGrowRawStringDelimeters(caret.Value, cancellationToken);
56+
TryGrowRawStringDelimiters(caret.Value, cancellationToken);
5757

5858
if (textChangeOpt is not TextChange textChange)
5959
return false;
@@ -129,8 +129,8 @@ SyntaxKind.InterpolatedSingleLineRawStringStartToken or
129129
/// <summary>
130130
/// When typing <c>"</c> given a raw string like <c>"""$$"""</c> (or a similar multiline form), then update the
131131
/// text to be: <c>""""$$""""</c>. i.e. grow both the start and end delimiters to keep the string properly
132-
/// balanced. This differs from TryGrowRawStringDelimeters in that the language will consider that initial
133-
/// <c>""""""</c> text to be a single delimeter, while we want to treat it as two.
132+
/// balanced. This differs from TryGrowRawStringDelimiters in that the language will consider that initial
133+
/// <c>""""""</c> text to be a single delimiter, while we want to treat it as two.
134134
/// </summary>
135135
private static TextChange? TryGrowInitialEmptyRawString(
136136
SnapshotPoint caret,
@@ -188,15 +188,15 @@ SyntaxKind.InterpolatedSingleLineRawStringStartToken or
188188
/// update the text to be: <c>"""" goo bar """"</c>. i.e. grow both the start and end delimiters to keep the
189189
/// string properly balanced.
190190
/// </summary>
191-
private static TextChange? TryGrowRawStringDelimeters(
191+
private static TextChange? TryGrowRawStringDelimiters(
192192
SnapshotPoint caret,
193193
CancellationToken cancellationToken)
194194
{
195195
var snapshot = caret.Snapshot;
196196
var position = caret.Position;
197197

198198
// if we have """$$" then typing `"` here should not grow the start/end quotes. we only want to grow them
199-
// if the user is at the end of the start delimeter.
199+
// if the user is at the end of the start delimiter.
200200
if (position < snapshot.Length && snapshot[position] == '"')
201201
return null;
202202

src/Workspaces/SharedUtilitiesAndExtensions/Compiler/CSharp/Extensions/SyntaxTreeExtensions.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -349,32 +349,32 @@ SyntaxKind.Utf8SingleLineRawStringLiteralToken or
349349
if (kind is SyntaxKind.SingleLineRawStringLiteralToken or SyntaxKind.MultiLineRawStringLiteralToken)
350350
{
351351
var sourceText = token.SyntaxTree!.GetText(cancellationToken);
352-
var startDelimeterLength = 0;
353-
var endDelimeterLength = 0;
352+
var startDelimiterLength = 0;
353+
var endDelimiterLength = 0;
354354
for (int i = token.SpanStart, n = token.Span.End; i < n; i++)
355355
{
356356
if (sourceText[i] != '"')
357357
break;
358358

359-
startDelimeterLength++;
359+
startDelimiterLength++;
360360
}
361361

362362
for (int i = token.Span.End - 1, n = token.Span.Start; i >= n; i--)
363363
{
364364
if (sourceText[i] != '"')
365365
break;
366366

367-
endDelimeterLength++;
367+
endDelimiterLength++;
368368
}
369369

370-
return token.Span.Length == startDelimeterLength ||
371-
(token.Span.Length > startDelimeterLength && endDelimeterLength < startDelimeterLength);
370+
return token.Span.Length == startDelimiterLength ||
371+
(token.Span.Length > startDelimiterLength && endDelimiterLength < startDelimiterLength);
372372
}
373373
else
374374
{
375-
var startDelimeterLength = token.IsVerbatimStringLiteral() ? 2 : 1;
376-
return token.Span.Length == startDelimeterLength ||
377-
(token.Span.Length > startDelimeterLength && token.Text[^1] != lastChar);
375+
var startDelimiterLength = token.IsVerbatimStringLiteral() ? 2 : 1;
376+
return token.Span.Length == startDelimiterLength ||
377+
(token.Span.Length > startDelimiterLength && token.Text[^1] != lastChar);
378378
}
379379
}
380380

0 commit comments

Comments
 (0)