diff options
-rw-r--r-- | mu.vim | 2 | ||||
-rw-r--r-- | vimrc.vim | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/mu.vim b/mu.vim index 63ee7bc0..c8210d16 100644 --- a/mu.vim +++ b/mu.vim @@ -22,6 +22,8 @@ setlocal iskeyword=@,48-57,?,!,_,$,- syntax match muComment /#.*$/ | highlight link muComment Comment syntax match muSalientComment /##.*$/ | highlight link muSalientComment SalientComment +syntax match muComment /;.*$/ | highlight link muComment Comment +syntax match muSalientComment /;;.*$/ | highlight link muSalientComment SalientComment set comments+=n:# syntax match CommentedCode "#? .*" let b:cmt_head = "#? " diff --git a/vimrc.vim b/vimrc.vim index 82fb587b..30e72105 100644 --- a/vimrc.vim +++ b/vimrc.vim @@ -1 +1,9 @@ syntax sync minlines=999 + +function! HighlightMuInArc() + set ft=mu + syntax keyword muHack begin | highlight link muHack CommentedCode + syntax match muHack "[()]" | highlight link muHack CommentedCode +endfunction +call HighlightMuInArc() +autocmd BufRead,BufNewFile *.mu call HighlightMuInArc() |