diff options
| author | Simen Heggestøyl | 2017-06-11 17:41:09 +0200 |
|---|---|---|
| committer | Simen Heggestøyl | 2017-06-11 19:32:17 +0200 |
| commit | ee051688c18b3bd7bb7c7a01100f09f7dd402ba6 (patch) | |
| tree | 57811395709db4c3951a5c59bfbc1cf23c929a30 /test | |
| parent | 8160c7d914882b40badf9eb8e4792da1b313745e (diff) | |
| download | emacs-ee051688c18b3bd7bb7c7a01100f09f7dd402ba6.tar.gz emacs-ee051688c18b3bd7bb7c7a01100f09f7dd402ba6.zip | |
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.
Diffstat (limited to 'test')
| -rw-r--r-- | test/manual/indent/css-mode.css | 5 |
1 files changed, 5 insertions, 0 deletions
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 { | |||
| 77 | url("Sans-Regular.eot") format("eot"), | 77 | url("Sans-Regular.eot") format("eot"), |
| 78 | url("Sans-Regular.woff") format("woff"); | 78 | url("Sans-Regular.woff") format("woff"); |
| 79 | } | 79 | } |
| 80 | |||
| 81 | .foo-bar--baz { | ||
| 82 | --foo-variable: 5px; | ||
| 83 | margin: var(--foo-variable); | ||
| 84 | } | ||