diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-06-30 23:05:10 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-06-30 23:05:10 -0700 |
commit | d1262cd690ac2fb4345b736ec6f406ed5470c3d3 (patch) | |
tree | b0ae8b4020360eb0a212dad064a5423a955c9491 | |
parent | b20d9ad3030729c57da73ec2c321795907d11b7a (diff) | |
download | mu-d1262cd690ac2fb4345b736ec6f406ed5470c3d3.tar.gz |
4299
-rw-r--r-- | subx/subx.vim | 1 | ||||
-rw-r--r-- | vimrc.vim | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/subx/subx.vim b/subx/subx.vim index 41026cea..8bdeec7b 100644 --- a/subx/subx.vim +++ b/subx/subx.vim @@ -17,6 +17,7 @@ setlocal formatoptions+=c " but comments should still wrap syntax match subxComment /#.*$/ | highlight link subxComment Comment syntax match subxSalientComment /##.*$/ | highlight link subxSalientComment SalientComment +set comments-=:# set comments+=n:# syntax match subxCommentedCode "#? .*" | highlight link subxCommentedCode CommentedCode let b:cmt_head = "#? " diff --git a/vimrc.vim b/vimrc.vim index 9618a44b..08ab8f13 100644 --- a/vimrc.vim +++ b/vimrc.vim @@ -19,8 +19,7 @@ function! HighlightTangledFile() " Our C++ files can have Mu code in scenarios, so highlight Mu comments like " regular comments. - syntax match muComment /# .*$/ - syntax match muComment /#: .*$/ + syntax match muComment /#.*$/ highlight link muComment Comment syntax match muSalientComment /##.*$/ | highlight link muSalientComment SalientComment syntax match muCommentedCode /#? .*$/ | highlight link muCommentedCode CommentedCode |