about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-11 22:02:44 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-11 22:02:44 -0700
commit3074c36136ff848b02755aa6806f7d392f04facc (patch)
treec95232fe255cba126863c9c92f8764829839457f
parent38f0b91af27a14e3673f531f63faa9ea1c1f07c1 (diff)
downloadmu-3074c36136ff848b02755aa6806f7d392f04facc.tar.gz
1049
-rw-r--r--cpp/vimrc.vim8
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/vimrc.vim b/cpp/vimrc.vim
index 6dd7f18e..d0992eb2 100644
--- a/cpp/vimrc.vim
+++ b/cpp/vimrc.vim
@@ -11,6 +11,12 @@ function! HighlightTangledFile()
   highlight traceAbsent ctermfg=darkred
 endfunction
 call HighlightTangledFile()
-autocmd BufReadPost,BufNewFile 0* call HighlightTangledFile()
+autocmd BufRead,BufNewFile 0* call HighlightTangledFile()
 
 set isk+=-
+
+" scenarios inside c++ files
+syntax match muComment /#.*$/ | highlight link muComment Comment
+syntax keyword muControl reply jump jump-if jump-unless loop loop-if loop-unless break-if break-unless | highlight link muControl Identifier
+syntax match muAssign "<-" | highlight link muAssign SpecialChar
+syntax match muAssign "\<raw\>"