Open mootari opened 2 years ago
Describe the bug
In Codemirror's HTML mode a custom CSS property inside a style tag will be incorrectly marked as .cmt-propertyName instead of .cmt-variableName if it starts with more than two dashes:
.cmt-propertyName
.cmt-variableName
Test snippet:
<style> body { -foo: 1; /* correct */ --foo: 1; /* correct */ ---foo: 1; /* incorrect */ } </style>
When passed as function arguments they are marked as .cmt-atom:
.cmt-atom
<style> body { bar: var(--foo); /* correct */ bar: var(---foo); /* incorrect */ } </style>
Describe the bug
In Codemirror's HTML mode a custom CSS property inside a style tag will be incorrectly marked as
.cmt-propertyName
instead of.cmt-variableName
if it starts with more than two dashes:Test snippet: