ref: 3303b2c61b4381500b39b1d3ce6f95b9a21ed4f4
parent: e632cbfd8ca7424201e9054cc8c8d0a32a6c92c6
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Sep 30 19:20:44 EDT 2015
Recognize current string interpolation syntax. We don't want to highlight '%s' specially -- we now use {}. This change highlights "{foo}" within a string, but skips escaped versions.
--- a/support/vim/syntax/myr.vim
+++ b/support/vim/syntax/myr.vim
@@ -8,7 +8,7 @@
syn region myrComment start=+/\*+ end=+\*/+
syn match myrSpecial display contained "\\\(x\x\+\|\o\{1,3}\|u{.*}\|.\|$\)"
-syn match myrFormat display "%[sbwilpc]"
+syn match myrFormat display "[^{]{[^}]*}[^}]"
syn region myrString start=+"+ skip=+\\"+ end=+"+ contains=myrSpecial,myrFormat extend
syn region myrChar start=+'+ skip=+\\'+ end=+'+ contains=myrSpecial,myrFormat extend
syn keyword myrKeyword castto