From fed55eed93033a2eae440b45b5bf54f120d0ac8b Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 10 Jun 2016 14:43:38 +0200 Subject: tv nix.vim: NixString can span multiple lines --- tv/2configs/vim.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix index c2f6c8455..f6a5cc9c1 100644 --- a/tv/2configs/vim.nix +++ b/tv/2configs/vim.nix @@ -218,7 +218,11 @@ let syn match NixHPATH /\~\(\/[a-zA-Z0-9\.\_\-\+]\+\)\+/ syn match NixSPATH /<[a-zA-Z0-9\.\_\-\+]\+\(\/[a-zA-Z0-9\.\_\-\+]\+\)*>/ syn match NixURI /[a-zA-Z][a-zA-Z0-9\+\-\.]*:[a-zA-Z0-9\%\/\?\:\@\&\=\+\$\,\-\_\.\!\~\*\']\+/ - syn match NixSTRING /"\([^\\"]\|\\.\)*"/ + syn region NixSTRING + \ matchgroup=NixSTRING + \ start='"' + \ skip='\\"' + \ end='"' syn region NixIND_STRING \ matchgroup=NixIND_STRING \ start="'''" -- cgit v1.2.3