From 721764a1b3c63c77ff0792beb6c37fbfee0f87bb Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sat, 12 Apr 2014 16:40:22 +0200 Subject: Bug 726469 - Tilde sign in combination with
 and
 MARKDOWN_SUPPORT disabled

---
 src/scanner.l | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/scanner.l b/src/scanner.l
index dd72ee1..a7ac841 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -6205,7 +6205,7 @@ OPERATOR  "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
                                           g_nestedComment=FALSE;
   					  BEGIN(DocCopyBlock);
                                         }
-"<"{PRE}">"			{
+{B}*"<"{PRE}">"		{
                                           docBlock+=yytext;
 				          docBlockName="
";
                                           g_fencedSize=0;
@@ -6221,6 +6221,7 @@ OPERATOR  "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
   					}
 "~~~"[~]*                     {
                                           docBlock+=yytext;
+                                          docBlockName="~~~";
                                           g_fencedSize=yyleng;
                                           g_nestedComment=FALSE;
                                           BEGIN(DocCopyBlock);
-- 
cgit v0.12