Skip to content

Commit

Permalink
documentation: support @SInCE taglet
Browse files Browse the repository at this point in the history
Closes #213
  • Loading branch information
Prince781 committed Mar 8, 2022
1 parent 8531c0f commit ef22ab2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/documentation/doccomment.vala
Original file line number Diff line number Diff line change
Expand Up @@ -251,5 +251,14 @@ class Vls.DocComment {
result.append ("`");
return false;
});

// block taglets: @since
body = /^@since[\t\f ]+((?'ident'\S+)(\.(?&ident))*?)$/m
.replace_eval (body, body.length, 0, 0, (match_info, result) => {
string version = match_info.fetch (1);
result.append ("\n---\n\n**Since** ");
result.append (version);
return false;
});
}
}

0 comments on commit ef22ab2

Please sign in to comment.