about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-17 22:52:41 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-17 22:52:41 -0700
commitb3cdcdd44f6b8db053e4814351fbf04fefb7d7cf (patch)
tree0ef92b44debd8bc5fc6b5279975ce88bd6e33212
parent12169df8bf28e580af5807e18188b41fefc2eb9b (diff)
downloadmu-b3cdcdd44f6b8db053e4814351fbf04fefb7d7cf.tar.gz
1093 - little more vim support for the old arc version
-rw-r--r--mu.vim2
-rw-r--r--vimrc.vim8
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()