@@ -29,7 +29,8 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
29
29
valueKeywords = parserConfig . valueKeywords || { } ,
30
30
allowNested = parserConfig . allowNested ,
31
31
lineComment = parserConfig . lineComment ,
32
- supportsAtComponent = parserConfig . supportsAtComponent === true ;
32
+ supportsAtComponent = parserConfig . supportsAtComponent === true ,
33
+ highlightNonStandardPropertyKeywords = config . highlightNonStandardPropertyKeywords !== false ;
33
34
34
35
var type , override ;
35
36
function ret ( style , tp ) { type = tp ; return style ; }
@@ -197,7 +198,7 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
197
198
override = "property" ;
198
199
return "maybeprop" ;
199
200
} else if ( nonStandardPropertyKeywords . hasOwnProperty ( word ) ) {
200
- override = "string-2" ;
201
+ override = highlightNonStandardPropertyKeywords ? "string-2" : "property ";
201
202
return "maybeprop" ;
202
203
} else if ( allowNested ) {
203
204
override = stream . match ( / ^ \s * : (?: \s | $ ) / , false ) ? "property" : "tag" ;
@@ -291,7 +292,7 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
291
292
else if ( propertyKeywords . hasOwnProperty ( word ) )
292
293
override = "property" ;
293
294
else if ( nonStandardPropertyKeywords . hasOwnProperty ( word ) )
294
- override = "string-2" ;
295
+ override = highlightNonStandardPropertyKeywords ? "string-2" : "property ";
295
296
else if ( valueKeywords . hasOwnProperty ( word ) )
296
297
override = "atom" ;
297
298
else if ( colorKeywords . hasOwnProperty ( word ) )
0 commit comments