summaryrefslogtreecommitdiff
path: root/.config/nvim/after/syntax
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/after/syntax')
-rw-r--r--.config/nvim/after/syntax/prr.vim22
1 files changed, 22 insertions, 0 deletions
diff --git a/.config/nvim/after/syntax/prr.vim b/.config/nvim/after/syntax/prr.vim
new file mode 100644
index 0000000..43a0557
--- /dev/null
+++ b/.config/nvim/after/syntax/prr.vim
@@ -0,0 +1,22 @@
+" Vim syntax file
+" Language: prr
+" Maintainer: Daniel Xu <dxu@dxuuu.xyz>
+" Last Change: 2022 Mar 25
+" Credits: Bram Moolenaar <Bram@vim.org>
+"
+" This version is copied and edited from diff.vim
+
+" Check whether an earlier file has defined a syntax already
+if exists("b:current_syntax")
+ finish
+endif
+
+syn match diffAdded "^> +.*"
+syn match diffRemoved "^> -.*"
+
+" Define the default highlighting.
+" Only used when an item doesn't have highlighting yet
+hi def link diffAdded Type
+hi def link diffRemoved Statement
+
+let b:current_syntax = "prr"