ref: 0e0424af35ab5ee7ae4d7c49937a648757fe3672
parent: ab4d1165045bde1fc5b291368e63b0bc0dd7a75d
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Feb 6 20:36:48 EST 2016
Be a bit more specific in the patterns for chars. Don't allow {} to show up, since this will confuse things with two \u{...} in the same line.
--- a/support/vim/syntax/myr.vim
+++ b/support/vim/syntax/myr.vim
@@ -8,7 +8,7 @@
syn region myrComment start=+/\*+ end=+\*/+
syn region myrComment start=+//+ end=+$+
-syn match myrSpecial display contained "\\\(x\x\+\|\o\{1,3}\|u{.*}\|.\|$\)"
+syn match myrSpecial display contained "\\\(x\x\+\|\o\{1,3}\|u{[a-zA-Z0-9_]*}\|.\|$\)"
syn match myrFormat display "[^{]{[^}]*}[^}]"
syn region myrString start=+"+ skip=+\\"+ end=+"+ contains=myrSpecial,myrFormat extend
syn region myrChar start=+'+ skip=+\\'+ end=+'+ contains=myrSpecial,myrFormat extend