From ee051688c18b3bd7bb7c7a01100f09f7dd402ba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simen=20Heggest=C3=B8yl?= Date: Sun, 11 Jun 2017 17:41:09 +0200 Subject: Fix highlighting of CSS selectors with double hyphens * lisp/textmodes/css-mode.el (css--font-lock-keywords): Fix highlighting of selectors that contain double hyphens. They would be mistaken for a variable. --- test/manual/indent/css-mode.css | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/manual') diff --git a/test/manual/indent/css-mode.css b/test/manual/indent/css-mode.css index 79b082188f5..bf612b53a14 100644 --- a/test/manual/indent/css-mode.css +++ b/test/manual/indent/css-mode.css @@ -77,3 +77,8 @@ div::before { url("Sans-Regular.eot") format("eot"), url("Sans-Regular.woff") format("woff"); } + +.foo-bar--baz { + --foo-variable: 5px; + margin: var(--foo-variable); +} -- cgit v1.2.1