diff options
author | tv <tv@krebsco.de> | 2016-06-10 12:47:13 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-06-10 16:04:55 +0200 |
commit | d32b7f9708c517eed050967d4009b94691755031 (patch) | |
tree | ab9d90bc4bbdd043ada44d5417f004007a677746 /tv/2configs | |
parent | 1e4e9e1b43d47b59c380a063afe880ea886d78fa (diff) |
tv nix.vim: NixBlock containedin @NixStrings
Diffstat (limited to 'tv/2configs')
-rw-r--r-- | tv/2configs/vim.nix | 15 |
1 files 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 |