marijnh/CodeMirror — pull request #999 by xeenon (2012-11-25 07:58:01+00:00)
Title: Allow theme styles to be based on the mode.

The colors for tokens are awkward for some modes and would be helped if the theme CSS could target the mode and the token. So CSS properties and keywords don't need to be the same colors as the equivalent HTML or JavaScript tokens.

For example:

.cm-string { color: green; }
.cm-m-css.cm-string { color: red; }
.cm-m-xml.cm-string { color: orange; }