Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit f8e716f

Browse files
brettfonosami
authored andcommitted
clarify some comments
1 parent f9a3650 commit f8e716f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/fsharp/LexFilter.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ type LexFilterImpl (lightSyntaxStatus: LightSyntaxStatus, compilingFsLib, lexer,
12421242
// a TYPE or MODULE. So the lexfilter helps out by looking ahead for these tokens and (1) closing expression contexts and (2) inserting extra 'coming soon' tokens
12431243
// that the expression rules in the FsYacc parser can 'shift' to make progress parsing the incomplete expressions, without using the 'recover' action.
12441244
let insertComingSoonTokens(keywordName, comingSoon, isHere) =
1245-
// compiling the source for FSharp.Core.dll uses crazy syntax like
1245+
// compiling the source for FSharp.Core.dll uses unconventional syntax like
12461246
// (# "unbox.any !0" type ('T) x : 'T #)
12471247
// where the type keyword is used inside an expression, so we must exempt FSharp.Core from some extra failed-parse-diagnostics-recovery-processing of the 'type' keyword
12481248
let mutable effectsToDo = []

vsintegration/src/FSharp.LanguageService.Base/Source.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2426,7 +2426,7 @@ public void Refresh(MethodTipMiscellany_DEPRECATED methodTipMiscellany)
24262426
}
24272427
if (this.currentParameter == -1)
24282428
{
2429-
// a bit of a kludge; if they just backspaced over the last comma and there's no close parenthesis, the caret is just to the right of all the param
2429+
// a bit messy; if they just backspaced over the last comma and there's no close parenthesis, the caret is just to the right of all the param
24302430
// ranges, but we don't want to dismiss the tip. so look just left of the caret and see if that would be inside the final param
24312431
if (methodTipMiscellany == MethodTipMiscellany_DEPRECATED.JustPressedBackspace
24322432
&& ranges[ranges.Length - 1].GetSpan(wpfTextView.TextSnapshot).Contains(wpfTextView.Caret.Position.BufferPosition.Subtract(1)))

0 commit comments

Comments
 (0)