aboutsummaryrefslogtreecommitdiff
path: root/imports/codemirror/mode/css/css.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-03 16:18:11 -0700
committerValerio Virgillito2012-05-03 16:18:11 -0700
commitf7a493acab51684bc557174ebaba6e80a4869df7 (patch)
tree3d1940acfba351b1aaba4c82a251522de286a0ae /imports/codemirror/mode/css/css.js
parent882f4f4b7427170ff3c3fc76a0ccd727c022bb63 (diff)
parentfec9ccee11ea21ffc95edce6e89d0d302b63e3d8 (diff)
downloadninja-f7a493acab51684bc557174ebaba6e80a4869df7.tar.gz
Merge branch 'refs/heads/master' into data-id
Diffstat (limited to 'imports/codemirror/mode/css/css.js')
-rw-r--r--imports/codemirror/mode/css/css.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/imports/codemirror/mode/css/css.js b/imports/codemirror/mode/css/css.js
index 45170a3d..050e1124 100644
--- a/imports/codemirror/mode/css/css.js
+++ b/imports/codemirror/mode/css/css.js
@@ -92,7 +92,7 @@ CodeMirror.defineMode("css", function(config) {
92 var style = state.tokenize(stream, state); 92 var style = state.tokenize(stream, state);
93 93
94 var context = state.stack[state.stack.length-1]; 94 var context = state.stack[state.stack.length-1];
95 if (type == "hash" && context == "rule") style = "atom"; 95 if (type == "hash" && context != "rule") style = "string-2";
96 else if (style == "variable") { 96 else if (style == "variable") {
97 if (context == "rule") style = "number"; 97 if (context == "rule") style = "number";
98 else if (!context || context == "@media{") style = "tag"; 98 else if (!context || context == "@media{") style = "tag";