aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/lexers/patch.tes
diff options
context:
space:
mode:
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 '
+}