about summary refs log tree commit diff stats
Commit message (Expand)AuthorAgeFilesLines
...
* 3383Kartik K. Agaram2016-09-172-4/+4
* 3382Kartik K. Agaram2016-09-171-5/+5
* 3381Kartik K. Agaram2016-09-1725-131/+131
* 3380Kartik K. Agaram2016-09-1743-854/+855
* 3379Kartik K. Agaram2016-09-1732-407/+407
* 3378Kartik K. Agaram2016-09-171-3/+2
* 3377Kartik K. Agaram2016-09-176-49/+49
* 3376 - start maximally using all type abbreviationsKartik K. Agaram2016-09-176-31/+31
* 3375Kartik K. Agaram2016-09-172-4/+5
* 3374Kartik K. Agaram2016-09-1615-62/+62
* 3373Kartik K. Agaram2016-09-161-1/+2
* 3372Kartik K. Agaram2016-09-161-7/+9
* 3371Kartik K. Agaram2016-09-1612-89/+173
* 3370Kartik K. Agaram2016-09-161-4/+5
* 3369Kartik K. Agaram2016-09-152-24/+0
* 3368Kartik K. Agaram2016-09-152-15/+4
* 3367Kartik K. Agaram2016-09-151-8/+24
* 3366Kartik K. Agaram2016-09-151-1/+1
* 3365 - create strings out of arbitrary typesKartik K. Agaram2016-09-153-3/+72
* 3364Kartik K. Agaram2016-09-154-9/+17
* 3363 - bugfix in tangleKartik K. Agaram2016-09-152-1/+12
* 3362Kartik K. Agaram2016-09-151-3/+3
* 3361Kartik K. Agaram2016-09-151-7/+7
* 3360Kartik K. Agaram2016-09-151-1/+1
* 3359Kartik K. Agaram2016-09-151-10/+9
* 3358Kartik K. Agaram2016-09-152-0/+9
* 3357 - multi-ary 'append'Kartik K. Agaram2016-09-151-33/+36
* 3356Kartik K. Agaram2016-09-151-10/+10
* 3355Kartik K. Agaram2016-09-1549-980/+1704
* 3354 - support multiple routines at a source/sinkKartik K. Agaram2016-09-152-13/+40
* 3353Kartik K. Agaram2016-09-152-7/+65
* 3352Kartik K. Agaram2016-09-141-72/+72
* 3351 - new but incomplete synchronization setupKartik K. Agaram2016-09-142-48/+101
* 3350Kartik K. Agaram2016-09-142-3/+7
* 3349Kartik K. Agaram2016-09-141-2/+6
* 3348Kartik K. Agaram2016-09-141-4/+20
* 3347Kartik K. Agaram2016-09-134-8/+8
* 3346Kartik K. Agaram2016-09-133-9/+14
* 3345Kartik K. Agaram2016-09-121-1/+1
* 3344Kartik K. Agaram2016-09-123-6/+8
* 3343Kartik K. Agaram2016-09-124-35/+54
* 3342Kartik K. Agaram2016-09-121-1/+8
* 3341Kartik K. Agaram2016-09-1215-35/+58
* 3340Kartik K. Agaram2016-09-123-0/+0
* 3339Kartik K. Agaram2016-09-122-1/+2
* 3338Kartik K. Agaram2016-09-1212-16/+41
* 3337 - first use of type abbreviations: textKartik K. Agaram2016-09-1235-968/+971
* 3336Kartik K. Agaram2016-09-111-4/+0
* 3335Kartik K. Agaram2016-09-113-16/+26
* 3334Kartik K. Agaram2016-09-112-8/+6
0' href='#n70'>70
71
72
73
74





                                              

                                                                            
                                                       



                                                                          















                                                                    
                                                                                       
                                                                             


                                                                         






                                                                                    

                                                 
                                
                                 

                                                        





                                   
                                                       


                                                   
                                
 
                             
                                        

                                
                                                
                                    
 
                                                 
                                

                             
                                                                                        


                              
" Vim syntax file
" Language:    mu
" Maintainer:  Kartik Agaram <mu@akkartik.com>
" URL:         http://github.com/akkartik/mu
" License:     public domain
"
" Copy this file into your ftplugin directory, and add the following to your
" vimrc or to .vim/ftdetect/mu.vim:
"   autocmd BufReadPost,BufNewFile *.mu set filetype=mu
"
" Some highlight groups you might want to select colors for in your vimrc:
"   muFunction
"   muTest

let s:save_cpo = &cpo
set cpo&vim

" todo: why does this periodically lose syntax, like on file reload?
"   $ vim x.mu
"   :e
"? if exists("b:syntax")
"?   finish
"? endif
"? let b:syntax = "mu"

setlocal iskeyword=@,48-57,?,!,_,$,-
setlocal formatoptions-=t  " Mu programs have long lines
setlocal formatoptions+=c  " but comments should still wrap

syntax match muSalientComment /##.*$/  | highlight link muSalientComment SalientComment
syntax match muComment /#\( \.\|? \)\@!.*/ | highlight link muComment Comment
syntax match muS1Comment /# \..*/ | highlight link muS1Comment Comment
syntax match muS2Comment /# \. \..*/ | highlight link muS2Comment Comment

set comments+=n:#
syntax match muCommentedCode "#? .*"  | highlight link muCommentedCode CommentedCode
let b:cmt_head = "#? "

syntax match muDelimiter "[{}]"  | highlight link muDelimiter Delimiter

" Mu literals
syntax match muLiteral %\<-\?[0-9][0-9A-Fa-f]*\>%
syntax match muLiteral %\<-\?0x[0-9A-Fa-f]\+\>%
syntax match muLiteral %"[^"]*"%
highlight link muLiteral Constant
syntax match muError %\<[0-9][0-9A-Fa-f]*[^0-9A-Fa-f]\>%
highlight link muError Error

" sources of action at a distance
syntax match muAssign "<-"
highlight link muAssign SpecialChar

" common keywords
syntax match muControl "\<return\>\|\<return-if[^ ]*\>"
syntax match muControl "\<jump\>\|\<jump-if[^ ]*"
syntax match muControl "\<break\>\|\<break-if[^ ]*"
syntax match muControl "\<loop\>\|\<loop-if[^ ]*"
highlight link muControl PreProc

syntax match muKeyword " -> "
syntax keyword muKeyword fn sig type var
highlight link muKeyword PreProc

syntax match muFunction "\(fn\s\+\)\@<=\(\S\+\)"
highlight link muFunction Identifier

syntax match muTest "\(fn\s\+\)\@<=\(test-\S\+\)"
highlight link muTest Identifier

syntax match muData "^type\>"
syntax match muData "\<eax\>\|\<ecx\>\|\<edx\>\|\<ebx\>\|\<esi\>\|\<edi\>\|\<xmm[0-7]\>"
highlight link muData Constant

let &cpo = s:save_cpo