From d32b7f9708c517eed050967d4009b94691755031 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 10 Jun 2016 12:47:13 +0200 Subject: tv nix.vim: NixBlock containedin @NixStrings --- tv/2configs/vim.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix index 1e077dd4f..480d93e35 100644 --- a/tv/2configs/vim.nix +++ b/tv/2configs/vim.nix @@ -216,14 +216,15 @@ 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 NixString2 - \ matchgroup=NixString2 + syn match NixSTRING /"\([^\\"]\|\\.\)*"/ + syn region NixIND_STRING + \ matchgroup=NixIND_STRING \ start="'''" \ skip="'''\('\|[$]\|\\[nrt]\)" \ end="'''" + syn cluster NixStrings contains=NixSTRING,NixIND_STRING + syn match NixCommentMatch /\(^\|\s\)#.*/ syn region NixCommentRegion start="/\*" end="\*/" @@ -238,8 +239,8 @@ let hi link NixHPATH NixData hi link NixSPATH NixData hi link NixURI NixData - hi link NixString NixData - hi link NixString2 NixString + hi link NixSTRING NixData + hi link NixIND_STRING NixData hi link NixEnter NixCode hi link NixExit NixData @@ -277,7 +278,7 @@ let \ start="[$]{" \ end="}" \ contains=TOP - \ containedin=@NixSubLangs + \ containedin=@NixSubLangs,@NixStrings syn region NixBlockHack \ matchgroup=NixEnter -- cgit v1.2.3