diff options
author | tv <tv@krebsco.de> | 2016-06-12 21:28:31 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-06-12 21:29:07 +0200 |
commit | 8cb3b639db33cb79bfbbfc238448c8db70634ec9 (patch) | |
tree | 0e80ad3615bf8a6be179579cd409e2c81d8ca0fc /tv | |
parent | e0dc8981fc91577812d42bc26eedd9445ce194ea (diff) |
tv nix.vim: transparent nix_*_region_* and curly blocks
Diffstat (limited to 'tv')
-rw-r--r-- | tv/2configs/vim.nix | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix index 9a84713..8504533 100644 --- a/tv/2configs/vim.nix +++ b/tv/2configs/vim.nix @@ -279,6 +279,7 @@ let \ end='"' \ contained \ contains=@nix_${lang}_syntax + \ transparent syn region nix_${lang}_region_IND_STRING \ matchgroup=NixIND_STRING @@ -287,6 +288,7 @@ let \ end="'''" \ contained \ contains=@nix_${lang}_syntax + \ transparent syn cluster nix_ind_strings \ add=nix_${lang}_region_IND_STRING @@ -305,22 +307,24 @@ let ''write[^ \t\r\n]*[ \t\r\n]*"\(\([^"]*\.\)\?vimrc\|[^"]*\.vim\)"''; })} - " Clear syntax that interferes with NixBlock. - " TODO redefine NixBlock so syntax don't have to be cleared - syn clear shOperator shSetList shVarAssign + " Clear syntax that interferes with nixINSIDE_DOLLAR_CURLY. + syn clear shVarAssign - syn region NixBlock + syn region nixINSIDE_DOLLAR_CURLY \ matchgroup=NixEnter \ start="[$]{" \ end="}" \ contains=TOP \ containedin=@nix_has_dollar_curly + \ transparent - syn region NixBlockHack + syn region nix_inside_curly \ matchgroup=NixEnter \ start="{" \ end="}" \ contains=TOP + \ containedin=nixINSIDE_DOLLAR_CURLY,nix_inside_curly + \ transparent syn match NixQuote /'''\([''$']\|\\.\)/he=s+2 \ containedin=@nix_ind_strings |