From 07a6806b0ff154f3fae6009b9b8f78df14c45ab8 Mon Sep 17 00:00:00 2001 From: Valtteri Laitinen Date: Wed, 24 May 2017 09:05:27 +0300 Subject: [PATCH] Support CSS #RRGGBBAA (#1139) Add support for CSS #RRGGBBAA notation. --- components/prism-css-extras.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/prism-css-extras.js b/components/prism-css-extras.js index 1b8571462b..cce2fbb924 100644 --- a/components/prism-css-extras.js +++ b/components/prism-css-extras.js @@ -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%\.]+/ }); \ No newline at end of file