Ticket #3864: markdown.diff

File markdown.diff, 1.4 KB (added by gszymaszek, 7 years ago)

Proposed patch (not complete)

  • misc/syntax/Makefile.am

    diff --git a/misc/syntax/Makefile.am b/misc/syntax/Makefile.am
    index f25ce5af8..acdfac449 100644
    a b SYNTAXFILES = \ 
    5151        m4.syntax               \ 
    5252        mail.syntax             \ 
    5353        makefile.syntax         \ 
     54        markdown.syntax         \ 
    5455        ml.syntax               \ 
    5556        named.syntax            \ 
    5657        nemerle.syntax          \ 
  • misc/syntax/Syntax.in

    diff --git a/misc/syntax/Syntax.in b/misc/syntax/Syntax.in
    index f9fef4490..dd74cbea0 100644
    a b include osl.syntax 
    286286file .\*\\.([rR]|Rd|Rscript)$ R\sProgram 
    287287include r.syntax 
    288288 
     289file ..\*\\.(?i:md)$ Markdown 
     290include markdown.syntax 
     291 
    289292file .\* unknown 
    290293include unknown.syntax 
  • new file misc/syntax/markdown.syntax

    diff --git a/misc/syntax/markdown.syntax b/misc/syntax/markdown.syntax
    new file mode 100644
    index 000000000..f91454f7b
    - +  
     1# Markdown syntax highlighting 
     2 
     3context default lightgray 
     4    spellcheck 
     5    # links 
     6    keyword whole [*](*) yellow 
     7 
     8context linestart #### \n red 
     9    spellcheck 
     10 
     11context linestart # \n brightred 
     12    spellcheck 
     13 
     14context linestart > \n green 
     15    spellcheck 
     16 
     17context linestart \s\s\s\s \n cyan 
     18 
     19context ``` ``` cyan 
     20 
     21context `` `` cyan 
     22 
     23context ` ` cyan 
     24 
     25context \*\* \*\* brightgreen 
     26    spellcheck 
     27 
     28context \* \* magenta 
     29    spellcheck 
     30 
     31context \_\_ \_\_ brightgreen 
     32    spellcheck 
     33 
     34context \_ \_ magenta 
     35    spellcheck