From d915bc3c78bb31a0940a28ab3aeafb61f2568d9d Mon Sep 17 00:00:00 2001 From: smilekzs <smilekzs@gmail.com> Date: Wed, 7 Nov 2012 22:58:49 +0800 Subject: [PATCH 1/2] WIP: Make coffeeInterpDelim stand out from the string --- syntax/coffee.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/syntax/coffee.vim b/syntax/coffee.vim index da39e34..32cf56e 100755 --- a/syntax/coffee.vim +++ b/syntax/coffee.vim @@ -140,7 +140,9 @@ hi def link coffeeEmbedDelim Delimiter syn region coffeeInterp matchgroup=coffeeInterpDelim start=/#{/ end=/}/ contained \ contains=@coffeeAll -hi def link coffeeInterpDelim PreProc +hi def link coffeeInterpDelim Operator +" TODO +" hi def coffeeInterpDelim term=underline cterm=underline gui=underline " A string escape sequence syn match coffeeEscape /\\\d\d\d\|\\x\x\{2\}\|\\u\x\{4\}\|\\./ contained display From 6fe1098ef973073a18c7d01eb3c3c50d0b8728f8 Mon Sep 17 00:00:00 2001 From: smilekzs <smilekzs@gmail.com> Date: Wed, 7 Nov 2012 23:43:33 +0800 Subject: [PATCH 2/2] Make `coffeeInterpDelim` stand out from `String` `coffeeInterpDelim` now links to `Operator` instead of `PreProc`. In this way it's more likely to be colored differently from `String` in a variety of color schemes. --- syntax/coffee.vim | 2 -- 1 file changed, 2 deletions(-) diff --git a/syntax/coffee.vim b/syntax/coffee.vim index 32cf56e..461d7a2 100755 --- a/syntax/coffee.vim +++ b/syntax/coffee.vim @@ -141,8 +141,6 @@ hi def link coffeeEmbedDelim Delimiter syn region coffeeInterp matchgroup=coffeeInterpDelim start=/#{/ end=/}/ contained \ contains=@coffeeAll hi def link coffeeInterpDelim Operator -" TODO -" hi def coffeeInterpDelim term=underline cterm=underline gui=underline " A string escape sequence syn match coffeeEscape /\\\d\d\d\|\\x\x\{2\}\|\\u\x\{4\}\|\\./ contained display