# Result: DocumentHighlight[] | null
def DocHighlightReply(bnr: number, lspserver: dict<any>, docHighlightReply: any): void
if docHighlightReply->empty()
+ util.WarnMsg($'No highlight for the current position')
return
endif
{
int i = arg;
arg = 2;
+ if (arg == 2) {
+ arg = 3;
+ }
}
END
setline(1, lines)
assert_equal([], prop_list(1))
assert_equal([], prop_list(3))
assert_equal([], prop_list(4))
+
+ cursor(5, 3) # if (arg == 2) {
+ var output = execute('LspHighlight')->split("\n")
+ assert_match('No highlight for the current position', output[0])
:%bw!
enddef