diff options
author | halex2005 <halex2005@e1.ru> | 2015-03-30 13:26:58 (GMT) |
---|---|---|
committer | halex2005 <halex2005@e1.ru> | 2015-03-30 13:26:58 (GMT) |
commit | 288ea42fc27389160c20912003a7972e21195265 (patch) | |
tree | 9cf5d2b3c7a1a40898a7b779da19edd7be5cfb56 /src/scanner.l | |
parent | 9d631b571bcf1826d00287bb82d8aac2da0a55c8 (diff) | |
download | Doxygen-288ea42fc27389160c20912003a7972e21195265.zip Doxygen-288ea42fc27389160c20912003a7972e21195265.tar.gz Doxygen-288ea42fc27389160c20912003a7972e21195265.tar.bz2 |
add support for github flavored fenced code blocks
Diffstat (limited to 'src/scanner.l')
-rw-r--r-- | src/scanner.l | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/scanner.l b/src/scanner.l index 2e111cb..b9243c9 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -6271,6 +6271,13 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) g_nestedComment=FALSE; BEGIN(DocCopyBlock); } +<DocBlock>"```"[~]* { + docBlock+=yytext; + docBlockName="```"; + g_fencedSize=yyleng; + g_nestedComment=FALSE; + BEGIN(DocCopyBlock); + } <DocBlock>{B}*"<code>" { if (insideCS) { @@ -6389,6 +6396,13 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) BEGIN(DocBlock); } } +<DocCopyBlock>"```"[~]* { + docBlock+=yytext; + if (g_fencedSize==yyleng) + { + BEGIN(DocBlock); + } + } <DocCopyBlock>[^\<@/*\]~\$\\\n]+ { // any character that is not special docBlock+=yytext; } |