Skip to content

Commit

Permalink
language-server: detect asdoc comments on same line as /** (such as i…
Browse files Browse the repository at this point in the history
…nheritDoc)
  • Loading branch information
joshtynjala committed Aug 26, 2024
1 parent c1bfaa8 commit 0926f28
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,15 @@ public void compile(boolean useMarkdown) {
if (c != -1) {
lines[0] = lines[0].substring(0, c);
}
n++;
}
// strip start of asdoc coment
// strip start of asdoc comment
String line = lines[0];
int lengthToRemove = Math.min(line.length(), 3);
line = line.substring(lengthToRemove);
line = " * " + line.substring(lengthToRemove);
lines[0] = line;
VSCodeASDocTag lastTag = null;
appendLine(sb, line, insidePreformatted);
for (int i = 1; i < n - 1; i++) {
for (int i = 0; i < n - 1; i++) {
line = lines[i];
if (insidePreformatted || !asdocTagPattern.matcher(line).find()) {
int star = line.indexOf("*");
Expand Down

0 comments on commit 0926f28

Please sign in to comment.