temporarily patch codemirror::mode::stylus to see CSS4 hex colors

This commit is contained in:
tophf 2017-12-22 10:47:14 +03:00
parent d82efe37b5
commit 8f71a9f051

View File

@ -76,7 +76,7 @@
if (ch == "#") {
stream.next();
// Hex color
if (stream.match(/^[0-9a-f]{6}|[0-9a-f]{3}/i)) {
if (stream.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b/i)) {
return ["atom", "atom"];
}
// ID selector