summaryrefslogtreecommitdiff
path: root/doc/syntax/patch.nanorc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/syntax/patch.nanorc')
-rw-r--r--doc/syntax/patch.nanorc11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/syntax/patch.nanorc b/doc/syntax/patch.nanorc
new file mode 100644
index 0000000..5f10118
--- /dev/null
+++ b/doc/syntax/patch.nanorc
@@ -0,0 +1,11 @@
+## Here is an example for patch files.
+##
+syntax "patch" "\.(patch|diff)$"
+magic "diff output text"
+color brightgreen "^\+.*"
+color green "^\+\+\+.*"
+color brightblue "^ .*"
+color brightred "^-.*"
+color red "^---.*"
+color brightyellow "^@@.*"
+color magenta "^diff.*"