diff options
author | Domen Kožar <domen@dev.si> | 2014-02-12 14:39:24 +0100 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2014-02-12 14:41:27 +0100 |
commit | 5c9dc83bb909a07e830f0364ba65e0fe0d59b230 (patch) | |
tree | 25bfa90bb4cf7ec558dc4142a457a85f4f8db079 /pkgs/applications/editors | |
parent | 77817b7638d1afe0be0979d70c257deb51a75406 (diff) | |
download | nixlib-5c9dc83bb909a07e830f0364ba65e0fe0d59b230.tar nixlib-5c9dc83bb909a07e830f0364ba65e0fe0d59b230.tar.gz nixlib-5c9dc83bb909a07e830f0364ba65e0fe0d59b230.tar.bz2 nixlib-5c9dc83bb909a07e830f0364ba65e0fe0d59b230.tar.lz nixlib-5c9dc83bb909a07e830f0364ba65e0fe0d59b230.tar.xz nixlib-5c9dc83bb909a07e830f0364ba65e0fe0d59b230.tar.zst nixlib-5c9dc83bb909a07e830f0364ba65e0fe0d59b230.zip |
vim ft: address the problem with broken highlighting in big files
It seems Vim needs to be instructed how to scan for the begining of the multiline statements to correctly and efficiently highlight lanuages. See :help syn-sync-maxlines
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r-- | pkgs/applications/editors/vim/ft-nix-support.patch | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/applications/editors/vim/ft-nix-support.patch b/pkgs/applications/editors/vim/ft-nix-support.patch index b2ac423092e5..ed508784813c 100644 --- a/pkgs/applications/editors/vim/ft-nix-support.patch +++ b/pkgs/applications/editors/vim/ft-nix-support.patch @@ -23,7 +23,7 @@ new file mode 100644 index 0000000..a2f9918 --- /dev/null +++ b/runtime/syntax/nix.vim -@@ -0,0 +1,42 @@ +@@ -0,0 +1,47 @@ +" Vim syntax file +" Language: nix +" Maintainer: Marc Weber <marco-oweber@gmx.de> @@ -68,3 +68,8 @@ index 0000000..a2f9918 +hi def link nixFuncArg Identifier + +let b:current_syntax = "nix" ++ ++" scan backwards to find begining of multiline statements ++syn sync ccomment nixMultiLineComment minlines=10 maxlines=500 ++syn sync ccomment nixStringIndented minlines=10 maxlines=500 ++syn sync ccomment nixString maxlines=10 |