detect comment position context (#756)

This commit is contained in:
Techatrix
2022-11-16 23:34:36 +01:00
committed by GitHub
parent 662b560861
commit d75fd3a880
2 changed files with 15 additions and 13 deletions

View File

@@ -103,19 +103,18 @@ test "position context - builtin" {
}
test "position context - comment" {
// TODO fix failing test!
// try testContext(
// \\// i am<cursor> a test
// ,
// .comment,
// "// i am",
// );
// try testContext(
// \\/// i am<cursor> a test
// ,
// .comment,
// "/// i am",
// );
try testContext(
\\// i am<cursor> a test
,
.comment,
null, // report "// i am a test"
);
try testContext(
\\/// i am<cursor> a test
,
.comment,
null, // report /// i am a test
);
}
test "position context - import/embedfile string literal" {