Skip to content

Commit ef22ab2

Browse files
committed
documentation: support @SInCE taglet
Closes #213
1 parent 8531c0f commit ef22ab2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/documentation/doccomment.vala

+9
Original file line numberDiff line numberDiff line change
@@ -251,5 +251,14 @@ class Vls.DocComment {
251251
result.append ("`");
252252
return false;
253253
});
254+
255+
// block taglets: @since
256+
body = /^@since[\t\f ]+((?'ident'\S+)(\.(?&ident))*?)$/m
257+
.replace_eval (body, body.length, 0, 0, (match_info, result) => {
258+
string version = match_info.fetch (1);
259+
result.append ("\n---\n\n**Since** ");
260+
result.append (version);
261+
return false;
262+
});
254263
}
255264
}

0 commit comments

Comments
 (0)