summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-06-10 14:43:38 +0200
committertv <tv@krebsco.de>2016-06-10 16:04:56 +0200
commit321d33904ae547e0ba5c45074d8259ecb0e01d80 (patch)
tree8d0a3b59c36964437ad40e771bab4739d99982b4
parent393578ee3bb6e555d6078222692354419a182c29 (diff)
tv nix.vim: NixString can span multiple lines
-rw-r--r--tv/2configs/vim.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix
index c2f6c84..f6a5cc9 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="'''"