aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/lexers/patch.tes
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2014-11-19 23:36:07 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2014-11-19 23:36:07 +0100
commitd4f8fb3efcb60cc2cd39ecb7ca65706db4c7b6ad (patch)
tree311722b240136da481c7445df4a1fa3ec7325e58 /lib/lexers/patch.tes
parent8f20c809292b8318b921e611b1ec3811f757dc11 (diff)
downloadsciteco-d4f8fb3efcb60cc2cd39ecb7ca65706db4c7b6ad.tar.gz
added first draft of new modular lexer system
Diffstat (limited to 'lib/lexers/patch.tes')
-rw-r--r--lib/lexers/patch.tes20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/lexers/patch.tes b/lib/lexers/patch.tes
new file mode 100644
index 0000000..1949712
--- /dev/null
+++ b/lib/lexers/patch.tes
@@ -0,0 +1,20 @@
+! Patch/Diff Files !
+
+@[lexer.test.patch]{
+ [_ :S.[diff,patch] ]_
+}
+
+@[lexer.set.patch]{
+ ESSETLEXER,SCLEX_DIFF
+ :M[color.comment],1M[color.set]
+ :M[color.keyword],2M[color.set] ! Command !
+ :M[color.preproc],3M[color.set] ! Source/Dest !
+ :M[color.operator],4M[color.set] ! Position @@ !
+ :M[color.deletion],5M[color.set]
+ :M[color.addition],6M[color.set]
+ :M[color.change],7M[color.set]
+}
+
+@:[lexer.auto]{
+ :M[lexer.test.patch]"S Q.fEB :M[lexer.set.patch] Oend '
+}