diff options
author | Santo Cariotti <santo@dcariotti.me> | 2023-01-09 18:35:38 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2023-01-09 18:35:38 +0100 |
commit | da622343808a106653e5a377522d6147665ba36e (patch) | |
tree | 61a2dd6efe4b2946d15fbb768e999c7541849a7b /.config/nvim/after/syntax | |
parent | 374b9ceff4142802a4eb64277143fd89fc8b5a5c (diff) |
Add after folder
Diffstat (limited to '.config/nvim/after/syntax')
-rw-r--r-- | .config/nvim/after/syntax/prr.vim | 22 |
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" |