path: root/support
diff options
authorOri Bernstein <>2016-02-07 01:36:48 -0800
committerOri Bernstein <>2016-02-07 01:36:48 -0800
commit0e0424af35ab5ee7ae4d7c49937a648757fe3672 (patch)
tree9d8458ba7fe2ff22038456fc4d2f3f2c27731ea2 /support
parentab4d1165045bde1fc5b291368e63b0bc0dd7a75d (diff)
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.
Diffstat (limited to 'support')
1 files changed, 1 insertions, 1 deletions
diff --git a/support/vim/syntax/myr.vim b/support/vim/syntax/myr.vim
index a7545b6..763f693 100644
--- a/support/vim/syntax/myr.vim
+++ b/support/vim/syntax/myr.vim
@@ -8,7 +8,7 @@ endif
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