diff options
author | tv <tv@krebsco.de> | 2016-06-09 15:25:33 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-06-10 16:04:55 +0200 |
commit | ce79df9b7d43f3e68fac5de195a1d782e7c140aa (patch) | |
tree | c17e229aa70147263c3f64734f9f7ea8a511afcb /tv/2configs/vim.nix | |
parent | 6d8bedbf239ae8865bc44866ded062cc44ecdf64 (diff) |
tv nix.vim: admit both kinds of strings
Diffstat (limited to 'tv/2configs/vim.nix')
-rw-r--r-- | tv/2configs/vim.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix index eb6c432bb..fd3bd8856 100644 --- a/tv/2configs/vim.nix +++ b/tv/2configs/vim.nix @@ -219,6 +219,12 @@ let syn match NixURI /[a-zA-Z][a-zA-Z0-9\+\-\.]*:[a-zA-Z0-9\%\/\?\:\@\&\=\+\$\,\-\_\.\!\~\*\']\+/ syn match NixString /"\([^\\"]\|\\.\)*"/ + syn region NixString2 + \ matchgroup=NixString2 + \ start="'''" + \ skip="'''\('\|[$]\|\\[nrt]\)" + \ end="'''" + syn match NixCommentMatch /\(^\|\s\)#.*/ syn region NixCommentRegion start="/\*" end="\*/" @@ -234,6 +240,7 @@ let hi link NixSPATH NixData hi link NixURI NixData hi link NixString NixData + hi link NixString2 NixString hi link NixEnter NixCode hi link NixExit NixData @@ -270,6 +277,7 @@ let \ containedin=@NixSubLangs syn region NixBlockHack + \ matchgroup=NixEnter \ start="{" \ end="}" \ contains=TOP |