diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2015-04-05 14:22:37 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2015-04-05 14:22:37 (GMT) |
commit | ba37d860547b6eec4d48077be573388686587e0e (patch) | |
tree | f7394631291ec37b7c4f31a92ab3e8f7c83cf872 /src/pre.l | |
parent | adf51b6b92a3dd1931ff166d3ee84c952cedebf2 (diff) | |
parent | bb93db0d60fd4cd123dfc886ecd20167068db6ba (diff) | |
download | Doxygen-ba37d860547b6eec4d48077be573388686587e0e.zip Doxygen-ba37d860547b6eec4d48077be573388686587e0e.tar.gz Doxygen-ba37d860547b6eec4d48077be573388686587e0e.tar.bz2 |
Merge pull request #326 from halex2005/UseGithubFencedCodeBlockSyntax
add support for github flavored fenced code blocks
Diffstat (limited to 'src/pre.l')
-rw-r--r-- | src/pre.l | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -2465,6 +2465,19 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'")) BEGIN(SkipVerbatim); } } +<SkipCComment>"```"[`]* { + static bool markdownSupport = Config_getBool("MARKDOWN_SUPPORT"); + if (!markdownSupport) + { + REJECT; + } + else + { + outputArray(yytext,(int)yyleng); + g_fenceSize=yyleng; + BEGIN(SkipVerbatim); + } + } <SkipCComment>[\\@][\\@]("verbatim"|"latexonly"|"htmlonly"|"xmlonly"|"docbookonly"|"rtfonly"|"manonly"|"dot"|"code"("{"[^}]*"}")?){BN}+ { outputArray(yytext,(int)yyleng); g_yyLineNr+=QCString(yytext).contains('\n'); @@ -2606,6 +2619,13 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'")) BEGIN(SkipCComment); } } +<SkipVerbatim>"```"[`]* { + outputArray(yytext,(int)yyleng); + if (g_fenceSize==yyleng) + { + BEGIN(SkipCComment); + } + } <SkipVerbatim>"*/"|"/*" { outputArray(yytext,(int)yyleng); } |