We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents adb1ec0 + 17b3ee0 commit f4b4d96Copy full SHA for f4b4d96
src/FSharp.Analyzers.SDK/FSharp.Analyzers.SDK.fs
@@ -59,16 +59,17 @@ module Ignore =
59
60
let tryGetIgnoreComment splitBy (sourceText: ISourceText) (ct: CommentTrivia) =
61
match ct with
62
- | CommentTrivia.BlockComment r
+ | CommentTrivia.BlockComment _ -> None
63
| CommentTrivia.LineComment r ->
64
- // pattern to match is:
65
- // prefix: command [codes]
66
- match
+ let commentText =
67
sourceText.GetLineString(
68
r.StartLine
69
- 1
70
)
71
- with
+
+ // pattern to match is:
+ // prefix: command [codes]
72
+ match commentText with
73
| ParseRegexCompiled @"fsharpanalyzer:\signore-line-next\s(.*)$" [ SplitBy splitBy codes ] ->
74
Some
75
<| IgnoreComment.NextLine(r.StartLine, trimCodes codes)
0 commit comments