diff options
-rw-r--r-- | cpp/vimrc.vim | 8 |
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\>" |