Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 499683
Collapse All | Expand All

(-)a/bundles/org.eclipse.orion.client.webtools/web/webtools/cssHover.js (-3 / +14 lines)
Lines 84-94 define([ Link Here
84
				    if(tok) {
84
				    if(tok) {
85
				        var color = this._collectColorId(tok, results.tokens);
85
				        var color = this._collectColorId(tok, results.tokens);
86
		                if(color) {
86
		                if(color) {
87
		                    return this._getColorHover(color);    
87
		                    return this._getColorHover(color);
88
		                }
88
		                }
89
				    }
89
				    }
90
					if (CSSLint.Colors[token.value]){
90
				    var colorValue = CSSLint.Colors[token.value];
91
						return this._getColorHover(token.value);
91
					if (colorValue) {
92
						if (/\#[0-9A-Fa-f]{1,6}/.test(colorValue)){
93
							// this is a color hash not a deprecated css2 color attribute
94
							return this._getColorHover(token.value);
95
						}
96
						// check the next token to see if it is a ':'
97
						// this is a deprecated css2 color attribute
98
						var nextToken = results.tokens[token.index + 1];
99
						if (nextToken && nextToken.type !== 'COLON') {
100
							return this._getColorHover(token.value);
101
						}
102
						return null;
92
					}
103
					}
93
					if (/\#[0-9A-Fa-f]{1,6}/.test(token.value)){
104
					if (/\#[0-9A-Fa-f]{1,6}/.test(token.value)){
94
						return this._getColorHover(token.value);	
105
						return this._getColorHover(token.value);	

Return to bug 499683