Skip to content

Commit

Permalink
Match BOL before syntax association to avoid external overwrites.
Browse files Browse the repository at this point in the history
  • Loading branch information
thaerkh committed Feb 4, 2017
1 parent e6969e7 commit ed6b052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/workspace.vim
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ function! s:SetIndentGuideHighlights(user_initiated)
endif
execute "highlight Conceal ctermfg=238 ctermbg=NONE guifg=Grey27 guibg=NONE"
execute "highlight SpecialKey ctermfg=238 ctermbg=NONE guifg=Grey27 guibg=NONE"
execute printf('syntax match IndentGuideDraw /^\zs\ \ze\ \{%i}/ containedin=ALL conceal cchar=┆', &l:shiftwidth - 1)
execute 'syntax match IndentGuideSpaces /^\ \+/ containedin=ALL contains=IndentGuideDraw keepend'
execute printf('syntax match IndentGuideDraw /^\zs\ \ze\ \{%i}/ contained conceal cchar=┆', &l:shiftwidth - 1)
execute printf('syntax match IndentGuideDraw /\ \{%i}\zs \ze/ contained conceal cchar=┆', &l:shiftwidth - 1)
endif
endfunction
Expand Down

0 comments on commit ed6b052

Please sign in to comment.