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 | 8bad489794388ef8c5f7676939b2f42bbc91a9ed (patch) | |
tree | 599273edac3218ed4ee12f33c40397b4ca1c3462 | |
parent | 8703594aad5ffc138d32c46c7445ce8506a4a6ed (diff) |
tv nix.vim: admit both kinds of strings
-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 eb6c432..fd3bd88 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 |