temporarily patch codemirror::mode::stylus to see CSS4 hex colors
This commit is contained in:
parent
d82efe37b5
commit
8f71a9f051
2
vendor/codemirror/mode/stylus/stylus.js
vendored
2
vendor/codemirror/mode/stylus/stylus.js
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user