Skip to content

Commit

Permalink
issue #7807 Incorrect handling of triple backticks with specifying la…
Browse files Browse the repository at this point in the history
…nguage.

When having:
~~~
/** \file
 *
 * ```{.c}
 *   // backticks c ext
 *   void fie_b4(void);
 * ```
*/
~~~
the triple backticks with language are handled properly, though when having:
~~~
/** \file

```{.c}
  // backticks c ext
  void fie_b4(void);
```
*/
~~~
this is not the case.

Note: when using triple tildes instead of backticks it does work as well.
  • Loading branch information
albert-github committed Nov 23, 2021
1 parent e321a87 commit 48888bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scanner.l
Expand Up @@ -6625,7 +6625,7 @@ NONLopt [^\n]*
REJECT;
}
}
<DocBlock>[^@*~\/\\\n]+ { // any character that isn't special
<DocBlock>[^@*~`\/\\\n]+ { // any character that isn't special
yyextra->docBlock << yytext;
}
<DocBlock>\n { // newline
Expand Down

0 comments on commit 48888bf

Please sign in to comment.