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 |
4 | 4 | spellcheck |
5 | 5 | # links |
6 | 6 | 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 |
7 | 14 | |
8 | 15 | context linestart #### \n red |
9 | 16 | spellcheck |
… |
… |
context ``` ``` cyan |
21 | 28 | context `` `` cyan |
22 | 29 | |
23 | 30 | context ` ` 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 |