diff options
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/vimrc.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/vimrc.vim b/cpp/vimrc.vim index 920e26a7..4f89542e 100644 --- a/cpp/vimrc.vim +++ b/cpp/vimrc.vim @@ -1,6 +1,9 @@ " Highlighting literate directives in C++ sources. function! HighlightTangledFile() set ft=cpp + set comments-=:// + set comments-=n:// + set comments+=n://:,n:// syntax region tangleDirective start=+:(+ skip=+".*"+ end=+)+ highlight link tangleDirective Delimiter syntax region traceContains start="^+" end="$" |