diff --git a/misc/syntax/Makefile.am b/misc/syntax/Makefile.am
index f25ce5af8..acdfac449 100644
a
|
b
|
SYNTAXFILES = \ |
51 | 51 | m4.syntax \ |
52 | 52 | mail.syntax \ |
53 | 53 | makefile.syntax \ |
| 54 | markdown.syntax \ |
54 | 55 | ml.syntax \ |
55 | 56 | named.syntax \ |
56 | 57 | nemerle.syntax \ |
diff --git a/misc/syntax/Syntax.in b/misc/syntax/Syntax.in
index f9fef4490..dd74cbea0 100644
a
|
b
|
include osl.syntax |
286 | 286 | file .\*\\.([rR]|Rd|Rscript)$ R\sProgram |
287 | 287 | include r.syntax |
288 | 288 | |
| 289 | file ..\*\\.(?i:md)$ Markdown |
| 290 | include markdown.syntax |
| 291 | |
289 | 292 | file .\* unknown |
290 | 293 | include unknown.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 | |
| 3 | context default lightgray |
| 4 | spellcheck |
| 5 | # links |
| 6 | keyword whole [*](*) yellow |
| 7 | |
| 8 | context linestart #### \n red |
| 9 | spellcheck |
| 10 | |
| 11 | context linestart # \n brightred |
| 12 | spellcheck |
| 13 | |
| 14 | context linestart > \n green |
| 15 | spellcheck |
| 16 | |
| 17 | context linestart \s\s\s\s \n cyan |
| 18 | |
| 19 | context ``` ``` cyan |
| 20 | |
| 21 | context `` `` cyan |
| 22 | |
| 23 | 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 |