Update to 7.1
This commit is contained in:
@@ -2,14 +2,11 @@
|
||||
Language: CSS
|
||||
*/
|
||||
|
||||
hljs.LANGUAGES.css = function() {
|
||||
hljs.LANGUAGES['css'] = function(hljs) {
|
||||
var FUNCTION = {
|
||||
className: 'function',
|
||||
begin: hljs.IDENT_RE + '\\(', end: '\\)',
|
||||
contains: [{
|
||||
endsWithParent: true, excludeEnd: true,
|
||||
contains: [hljs.NUMBER_MODE, hljs.APOS_STRING_MODE, hljs.QUOTE_STRING_MODE]
|
||||
}]
|
||||
contains: [hljs.NUMBER_MODE, hljs.APOS_STRING_MODE, hljs.QUOTE_STRING_MODE]
|
||||
};
|
||||
return {
|
||||
case_insensitive: true,
|
||||
@@ -37,16 +34,16 @@ hljs.LANGUAGES.css = function() {
|
||||
className: 'at_rule',
|
||||
begin: '@(font-face|page)',
|
||||
lexems: '[a-z-]+',
|
||||
keywords: {'font-face': 1, 'page': 1}
|
||||
keywords: 'font-face page'
|
||||
},
|
||||
{
|
||||
className: 'at_rule',
|
||||
begin: '@', end: '[{;]', // at_rule eating first "{" is a good thing
|
||||
// because it doesn't let it to be parsed as
|
||||
// because it doesn’t let it to be parsed as
|
||||
// a rule set but instead drops parser into
|
||||
// the defaultMode which is how it should be.
|
||||
excludeEnd: true,
|
||||
keywords: {'import': 1, 'page': 1, 'media': 1, 'charset': 1},
|
||||
keywords: 'import page media charset',
|
||||
contains: [
|
||||
FUNCTION,
|
||||
hljs.APOS_STRING_MODE, hljs.QUOTE_STRING_MODE,
|
||||
@@ -98,4 +95,4 @@ hljs.LANGUAGES.css = function() {
|
||||
]
|
||||
}
|
||||
};
|
||||
}();
|
||||
}(hljs);
|
||||
|
||||
Reference in New Issue
Block a user