about summary refs log tree commit diff stats
path: root/cpp/vimrc.vim
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/vimrc.vim')
-rw-r--r--cpp/vimrc.vim3
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="$"