Skip to content

Commit

Permalink
Support css custom properties (#2082)
Browse files Browse the repository at this point in the history
  • Loading branch information
colomolo authored and egor-rogov committed Jul 31, 2019
1 parent 4fbbe29 commit 777a2d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/languages/css.js
Expand Up @@ -6,7 +6,7 @@ Category: common, css
function(hljs) {
var IDENT_RE = '[a-zA-Z-][a-zA-Z0-9_-]*';
var RULE = {
begin: /[A-Z\_\.\-]+\s*:/, returnBegin: true, end: ';', endsWithParent: true,
begin: /(?:[A-Z\_\.\-]+|--[a-zA-Z0-9_-]+)\s*:/, returnBegin: true, end: ';', endsWithParent: true,
contains: [
{
className: 'attribute',
Expand Down

0 comments on commit 777a2d2

Please sign in to comment.