From bb93db0d60fd4cd123dfc886ecd20167068db6ba Mon Sep 17 00:00:00 2001 From: halex2005 Date: Mon, 30 Mar 2015 21:36:40 +0500 Subject: fix *.l for three backticks --- src/pre.l | 4 ++-- src/scanner.l | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pre.l b/src/pre.l index 7865966..92912e6 100644 --- a/src/pre.l +++ b/src/pre.l @@ -2465,7 +2465,7 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'")) BEGIN(SkipVerbatim); } } -"```"[~]* { +"```"[`]* { static bool markdownSupport = Config_getBool("MARKDOWN_SUPPORT"); if (!markdownSupport) { @@ -2619,7 +2619,7 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'")) BEGIN(SkipCComment); } } -"```"[~]* { +"```"[`]* { outputArray(yytext,(int)yyleng); if (g_fenceSize==yyleng) { diff --git a/src/scanner.l b/src/scanner.l index b9243c9..c309289 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -6271,7 +6271,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) g_nestedComment=FALSE; BEGIN(DocCopyBlock); } -"```"[~]* { +"```"[`]* { docBlock+=yytext; docBlockName="```"; g_fencedSize=yyleng; @@ -6396,7 +6396,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) BEGIN(DocBlock); } } -"```"[~]* { +"```"[`]* { docBlock+=yytext; if (g_fencedSize==yyleng) { -- cgit v0.12