aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/lexers/markdown.tes
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2022-11-26 05:39:45 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2022-11-27 19:12:54 +0300
commit85599c7e929237c61fb4b7857935475a6e57c8ec (patch)
tree0634800d38b848bff474d38ac78b9c214bb9799b /lib/lexers/markdown.tes
parent2a5dbe746e32df09c3913a68444fc13011a7f84e (diff)
downloadsciteco-85599c7e929237c61fb4b7857935475a6e57c8ec.tar.gz
added Markdown and YAML lexer configs
* For markdown.tes we should better introduce new predefined colors in the color scheme files since it doesn't map well to existing colors. For italic and bold, I am not using the predefined colors at all but only set the bold and italic style attributes -- this should still be portable across color schemes.
Diffstat (limited to 'lib/lexers/markdown.tes')
-rw-r--r--lib/lexers/markdown.tes26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/lexers/markdown.tes b/lib/lexers/markdown.tes
new file mode 100644
index 0000000..9129d5f
--- /dev/null
+++ b/lib/lexers/markdown.tes
@@ -0,0 +1,26 @@
+!* Markdown *!
+
+@[lexer.test.markdown]{
+ :EN*.mdQ*"S -1 '
+ :EN*.markdownQ*
+}
+
+@[lexer.set.markdown]{
+ ESSETILEXERmarkdown
+ 1,2ESSTYLESETBOLD
+ 1,3ESSTYLESETBOLD
+ 1,4ESSTYLESETITALIC
+ 1,5ESSTYLESETITALIC
+ !* FIXME: We probably need separate color codes *!
+ :M[color.preproc],6M[color.set]
+ 6U.i 5<:M[color.preproc2],%.iM[color.set]>
+ :M[color.keyword],13M[color.set]
+ :M[color.keyword],14M[color.set]
+ :M[color.comment],15M[color.set]
+ :M[color.deletion],16M[color.set]
+ :M[color.keyword],17M[color.set]
+ :M[color.variable],18M[color.set]
+ :M[color.string],19M[color.set]
+ :M[color.string],20M[color.set]
+ :M[color.string2],21M[color.set]
+}