Ticket #3893: 0001-syntax-fix-markdown.syntax-that-doesn-t-work-well-fo.patch

File 0001-syntax-fix-markdown.syntax-that-doesn-t-work-well-fo.patch, 1.3 KB (added by sknaumov, 19 months ago)

Proposed fix

  • misc/syntax/markdown.syntax

    From b6809ed60526376f5682e88642a9c0d8fbe74ad2 Mon Sep 17 00:00:00 2001
    From: Sergey Naumov <snaumov@quantenna.com>
    Date: Fri, 19 Jan 2018 12:10:20 +0300
    Subject: [PATCH] syntax: fix markdown.syntax that doesn't work well for
     complex files
    
    * Asterisk and underscore contexts don't play well with lists or
      words containing underscores. And given that markdown files
      could contain not only ASCII text, it is better to be conservative
      in detecting contexts.
    ---
     misc/syntax/markdown.syntax | 19 +++++++------------
     1 file changed, 7 insertions(+), 12 deletions(-)
    
    diff --git a/misc/syntax/markdown.syntax b/misc/syntax/markdown.syntax
    index f91454f..da6bd08 100644
    a b context default lightgray 
    44    spellcheck 
    55    # links 
    66    keyword whole [*](*) yellow 
     7    keyword \*\* white 
     8    keyword \*   yellow 
     9    keyword \\_  lightgray 
     10    keyword wholeleft  __ white 
     11    keyword wholeright __ white 
     12    keyword wholeleft  _  yellow 
     13    keyword wholeright _  yellow 
    714 
    815context linestart #### \n red 
    916    spellcheck 
    context ``` ``` cyan 
    2128context `` `` cyan 
    2229 
    2330context ` ` cyan 
    24  
    25 context \*\* \*\* brightgreen 
    26     spellcheck 
    27  
    28 context \* \* magenta 
    29     spellcheck 
    30  
    31 context \_\_ \_\_ brightgreen 
    32     spellcheck 
    33  
    34 context \_ \_ magenta 
    35     spellcheck