diff options
author | Ori Bernstein <ori@eigenstate.org> | 2015-09-30 23:20:44 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2015-09-30 23:20:44 -0700 |
commit | 3303b2c61b4381500b39b1d3ce6f95b9a21ed4f4 (patch) | |
tree | 9a0338b49061ae254c980dd103f108388dcaace5 /support | |
parent | e632cbfd8ca7424201e9054cc8c8d0a32a6c92c6 (diff) | |
download | mc-3303b2c61b4381500b39b1d3ce6f95b9a21ed4f4.tar.gz |
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.
Diffstat (limited to 'support')
-rw-r--r-- | support/vim/syntax/myr.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/vim/syntax/myr.vim b/support/vim/syntax/myr.vim index debcf11..4b352e1 100644 --- a/support/vim/syntax/myr.vim +++ b/support/vim/syntax/myr.vim @@ -8,7 +8,7 @@ endif 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 |