about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-10 12:18:20 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-10 12:33:22 -0700
commite3894819b3d3a7809b63a76cfdafa4c455eb9a6c (patch)
tree36ea1fcc0272858c8596e2c4b94b800aa865d01a
parentbe16deb0f94a283099652a82c9a5ea10abb86b67 (diff)
downloadmu-e3894819b3d3a7809b63a76cfdafa4c455eb9a6c.tar.gz
1331
-rw-r--r--chessboard.mu2
-rw-r--r--mu.vim6
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\>"