simplify semantic token comment handling

This commit is contained in:
Techatrix
2023-03-31 20:48:47 +02:00
parent 668d82d440
commit 3fefcfb398
2 changed files with 27 additions and 105 deletions

View File

@@ -15,7 +15,6 @@ test "semantic tokens - empty" {
}
test "semantic tokens - comment" {
if (true) return error.SkipZigTest; // TODO
try testSemanticTokens(
\\// hello world
, &.{
@@ -27,6 +26,14 @@ test "semantic tokens - comment" {
, &.{
.{ "//! hello world", .comment, .{ .documentation = true } },
});
try testSemanticTokens(
\\//! first line
\\//! second line
\\
, &.{
.{ "//! first line", .comment, .{ .documentation = true } },
.{ "//! second line", .comment, .{ .documentation = true } },
});
try testSemanticTokens(
\\/// hello world
\\const a;