about summary refs log tree commit diff stats
path: root/html/010vm.cc.html
Commit message (Expand)AuthorAgeFilesLines
* 3315Kartik K. Agaram2016-09-101-90/+213
* 3266Kartik K. Agaram2016-08-271-6/+6
* 3102Kartik K. Agaram2016-07-051-7/+11
* 3013Kartik K. Agaram2016-05-261-4/+8
* 2996Kartik K. Agaram2016-05-211-19/+26
* 2866Kartik K. Agaram2016-04-251-4/+3
* 2812Kartik K. Agaram2016-03-271-38/+97
* 2744Kartik K. Agaram2016-03-091-4/+4
* 2743Kartik K. Agaram2016-03-091-182/+174
* 2706 - update htmlKartik K. Agaram2016-02-251-164/+185
* 2625Kartik K. Agaram2016-02-021-1/+2
* 2605Kartik K. Agaram2016-01-261-5/+10
* 2545Kartik K. Agaram2015-12-151-4/+11
* 2611Kartik K. Agaram2015-11-291-30/+15
* 2447Kartik K. Agaram2015-11-151-2/+19
* 2423 - describe shape-shifting in html docsKartik K. Agaram2015-11-101-62/+347
* 2175Kartik K. Agaram2015-09-061-4/+1
* 2062Kartik K. Agaram2015-08-231-58/+60
* 1949Kartik K. Agaram2015-08-061-57/+61
* 1925Kartik K. Agaram2015-08-031-1/+1
* 1885Kartik K. Agaram2015-07-291-57/+58
* 1853Kartik K. Agaram2015-07-251-50/+66
* 1818Kartik K. Agaram2015-07-181-4/+2
* 1766Kartik K. Agaram2015-07-121-35/+46
* 1632Kartik K. Agaram2015-06-231-1/+1
* 1631 - update html versionsKartik K. Agaram2015-06-231-5/+8
* 1556Kartik K. Agaram2015-06-121-1/+1
* 1549Kartik K. Agaram2015-06-091-2/+2
* 1517Kartik K. Agaram2015-05-301-4/+4
* 1461 - descriptions/table of contents for the layersKartik K. Agaram2015-05-261-1/+1
* 1459Kartik K. Agaram2015-05-251-27/+32
* 1376 - update github docsKartik K. Agaram2015-05-141-20/+19
* 1291Kartik K. Agaram2015-05-061-1/+1
* 1279 - colorized rendering of the source filesKartik K. Agaram2015-05-061-0/+296
lt;vc@akkartik.com> 2020-02-28 11:19:53 -0800 6067' href='/akkartik/mu/commit/mu.vim?h=hlt&id=eaeb43de2ebf4979cbb5e5afcb62b410e82715ab'>eaeb43de ^
93a4ada6 ^
eaeb43de ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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