summaryrefslogtreecommitdiffstats
path: root/src/scanner.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/scanner.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/scanner.l')
-rw-r--r--src/scanner.l8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scanner.l b/src/scanner.l
index c309289..b11d777 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -6264,14 +6264,14 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
g_nestedComment=FALSE;
BEGIN(DocCopyBlock);
}
-<DocBlock>"~~~"[~]* {
+<DocBlock>^({B}*"*"+)?{B}{0,3}"~~~"[~]* {
docBlock+=yytext;
docBlockName="~~~";
g_fencedSize=yyleng;
g_nestedComment=FALSE;
BEGIN(DocCopyBlock);
}
-<DocBlock>"```"[`]* {
+<DocBlock>^({B}*"*"+)?{B}{0,3}"```"[`]* {
docBlock+=yytext;
docBlockName="```";
g_fencedSize=yyleng;
@@ -6389,14 +6389,14 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
REJECT;
}
}
-<DocCopyBlock>"~~~"[~]* {
+<DocCopyBlock>^({B}*"*"+)?{B}{0,3}"~~~"[~]* {
docBlock+=yytext;
if (g_fencedSize==yyleng)
{
BEGIN(DocBlock);
}
}
-<DocCopyBlock>"```"[`]* {
+<DocCopyBlock>^({B}*"*"+)?{B}{0,3}"```"[`]* {
docBlock+=yytext;
if (g_fencedSize==yyleng)
{