Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Emphasize `coffeeInterpDelim` for more distinction from `String` #108

Open
wants to merge 2 commits into from

1 participant

@summivox

link coffeeInterpDelim to Operator instead of PreProc. In this way it's more likely to be colored differently from String in a variety of color schemes.

Edit: Rationale: "abc #{ expr } def" is just 'abc' + expr + 'def', so#{ and } are actually "+ and +", which look like operators to me. Normally String and Operator are contrasted, since string concatenation is frequent.

summivox added some commits
@summivox summivox WIP: Make coffeeInterpDelim stand out from the string
d915bc3
@summivox summivox 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.
6fe1098
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 7, 2012
  1. @summivox
  2. @summivox

    Make `coffeeInterpDelim` stand out from `String`

    summivox authored
    `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.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  syntax/coffee.vim
View
2  syntax/coffee.vim
@@ -140,7 +140,7 @@ 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
" A string escape sequence
syn match coffeeEscape /\\\d\d\d\|\\x\x\{2\}\|\\u\x\{4\}\|\\./ contained display
Something went wrong with that request. Please try again.