diff options
-rw-r--r-- | chessboard.mu | 2 | ||||
-rw-r--r-- | mu.vim | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/chessboard.mu b/chessboard.mu index bf873760..2d7f9b81 100644 --- a/chessboard.mu +++ b/chessboard.mu @@ -571,7 +571,7 @@ recipe chessboard [ start-running buffer-lines:recipe, stdin:address:channel, buffered-stdin:address:channel { msg:address:array:character <- new [Stupid text-mode chessboard. White pieces in uppercase; black pieces in lowercase. No checking for legal moves. - ] +] print-string 0:literal/screen, msg:address:array:character cursor-to-next-line 0:literal/screen print-board 0:literal/screen, board:address:array:address:array:character diff --git a/mu.vim b/mu.vim index a973fc1a..2dda5523 100644 --- a/mu.vim +++ b/mu.vim @@ -28,10 +28,12 @@ set comments+=n:# syntax match CommentedCode "#? .*" let b:cmt_head = "#? " -syntax region muString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell +" don't match '[' at end of line, that's usually start of code +syntax region muString start=+\[[^\]]+ skip=+\\\\+ end=+\]+ +syntax match muString "\[\]" highlight link muString String -syntax match muDelimiter "[{}\[\]]" | highlight link muDelimiter Delimiter +syntax match muDelimiter "[{}]" | highlight link muDelimiter Delimiter syntax match muLabel " [^a-zA-Z0-9 \[][a-zA-Z0-9-]\+" | highlight link muLabel Function syntax match muAssign " <- " | highlight link muAssign SpecialChar syntax match muAssign "\<raw\>" |