Skip to content

Commit 0b6a6f5

Browse files
committed
Tooltips: fix null annotation highlighting
1 parent 71691a7 commit 0b6a6f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Compiler/Checking/NicePrint.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ module PrintTypes =
944944
// Show nullness annotations unless explicitly turned off
945945
if denv.showNullnessAnnotations <> Some false then
946946
match nullness.Evaluate() with
947-
| NullnessInfo.WithNull -> part2 ^^ wordL (tagText "| null")
947+
| NullnessInfo.WithNull -> part2 ^^ wordL (tagPunctuation "|") ^^ wordL (tagKeyword "null")
948948
| NullnessInfo.WithoutNull -> part2
949949
| NullnessInfo.AmbivalentToNull -> part2 //^^ wordL (tagText "__maybenull")
950950
else

0 commit comments

Comments
 (0)