Skip to content

Commit

Permalink
Support CSS #RRGGBBAA (#1139)
Browse files Browse the repository at this point in the history
Add support for CSS #RRGGBBAA notation.
  • Loading branch information
valtlai authored and LeaVerou committed May 24, 2017
1 parent 5df26e2 commit 07a6806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/prism-css-extras.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Prism.languages.css.selector = {
};

Prism.languages.insertBefore('css', 'function', {
'hexcode': /#[\da-f]{3,6}/i,
'hexcode': /#[\da-f]{3,8}/i,
'entity': /\\[\da-f]{1,8}/i,
'number': /[\d%\.]+/
});

0 comments on commit 07a6806

Please sign in to comment.