about summary refs log tree commit diff stats
path: root/html/057write.subx.html
Commit message (Collapse)AuthorAgeFilesLines
* 6513Kartik Agaram2020-06-121-3/+3
|
* 6384Kartik Agaram2020-05-221-8/+8
|
* 5925Kartik Agaram2020-01-271-1/+1
|
* 5897 - rename comparison instructionsKartik Agaram2020-01-161-1/+1
| | | | | | | Signed and unsigned don't quite capture the essence of what the different combinations of x86 flags are doing for SubX. The crucial distinction is that one set of comparison operators is for integers and the second is for addresses.
* 5884Kartik Agaram2020-01-121-3/+3
|
* 5876 - address -> addrKartik Agaram2020-01-031-1/+1
|
* 5835Kartik Agaram2019-12-281-1/+1
|
* 5806Kartik Agaram2019-12-091-4/+4
|
* 5701Kartik Agaram2019-10-171-3/+3
|
* 5592 - switch register names to lowercaseKartik Agaram2019-08-261-42/+42
|
* 5582Kartik Agaram2019-08-251-5/+5
|
* 5490Kartik Agaram2019-07-271-2/+2
|
* 5485 - promote SubX to top-levelKartik Agaram2019-07-271-0/+223
class="c">" autocmd BufReadPost,BufNewFile *.mu set filetype=mu 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 muComment /#.*$/ | highlight link muComment Comment syntax match muSalientComment /##.*$/ | highlight link muSalientComment SalientComment 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 " sources of action at a distance syntax match muAssign "<-" highlight link muAssign SpecialChar " common keywords syntax match muControl "^return\>\| return\>" 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 type var highlight link muKeyword PreProc syntax match muFunction "\(fn\s*\)\@<=\(\S\+\)" highlight muFunction cterm=underline ctermfg=130 syntax match muTest "\(fn\s*\)\@<=\(test-\S\+\)" highlight muTest ctermfg=64 syntax match muData "^type\>" syntax match muData "\<eax\>\|\<ecx\>\|\<edx\>\|\<ebx\>\|\<esi\>\|\<edi\>" highlight link muData Constant let &cpo = s:save_cpo