summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2015-04-05 18:52:42 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-04-05 18:52:42 (GMT)
commit39ba42c3b21d08ec606eee18ee8b64c67ec6a42a (patch)
tree9348a5432e6237c1ef7f9b327484e8cebfd6df5e /src/pre.l
parentba37d860547b6eec4d48077be573388686587e0e (diff)
downloadDoxygen-39ba42c3b21d08ec606eee18ee8b64c67ec6a42a.zip
Doxygen-39ba42c3b21d08ec606eee18ee8b64c67ec6a42a.tar.gz
Doxygen-39ba42c3b21d08ec606eee18ee8b64c67ec6a42a.tar.bz2
Added documentation for ``` style fenced code block and more robust parsing
Diffstat (limited to 'src/pre.l')
-rw-r--r--src/pre.l10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pre.l b/src/pre.l
index 92912e6..ab2ad6f 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -2452,7 +2452,7 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
<SkipCComment>[\\@][\\@]("f{"|"f$"|"f[") {
outputArray(yytext,(int)yyleng);
}
-<SkipCComment>"~~~"[~]* {
+<SkipCComment>^({B}*"*"+)?{B}{0,3}"~~~"[~]* {
static bool markdownSupport = Config_getBool("MARKDOWN_SUPPORT");
if (!markdownSupport)
{
@@ -2465,7 +2465,7 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
BEGIN(SkipVerbatim);
}
}
-<SkipCComment>"```"[`]* {
+<SkipCComment>^({B}*"*"+)?{B}{0,3}"```"[`]* {
static bool markdownSupport = Config_getBool("MARKDOWN_SUPPORT");
if (!markdownSupport)
{
@@ -2612,14 +2612,14 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
BEGIN(SkipCComment);
}
}
-<SkipVerbatim>"~~~"[~]* {
+<SkipVerbatim>^({B}*"*"+)?{B}{0,3}"~~~"[~]* {
outputArray(yytext,(int)yyleng);
if (g_fenceSize==yyleng)
{
BEGIN(SkipCComment);
}
}
-<SkipVerbatim>"```"[`]* {
+<SkipVerbatim>^({B}*"*"+)?{B}{0,3}"```"[`]* {
outputArray(yytext,(int)yyleng);
if (g_fenceSize==yyleng)
{
@@ -2629,7 +2629,7 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
<SkipVerbatim>"*/"|"/*" {
outputArray(yytext,(int)yyleng);
}
-<SkipCComment,SkipVerbatim>[^*\\@\x06~\n\/]+ {
+<SkipCComment,SkipVerbatim>[^*\\@\x06~`\n\/]+ {
outputArray(yytext,(int)yyleng);
}
<SkipCComment,SkipVerbatim>\n {