|
1 | 1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others |
2 | | -// Distributed under an MIT license: https://codemirror.net/LICENSE |
| 2 | +// Distributed under an MIT license: https://codemirror.net/5/LICENSE |
3 | 3 |
|
4 | 4 | (function(mod) { |
5 | 5 | if (typeof exports == "object" && typeof module == "object") // CommonJS |
@@ -228,7 +228,7 @@ CodeMirror.defineMode("css", function(config, parserConfig) { |
228 | 228 | if (type == "}" || type == "{") return popAndPass(type, stream, state); |
229 | 229 | if (type == "(") return pushContext(state, stream, "parens"); |
230 | 230 |
|
231 | | - if (type == "hash" && !/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(stream.current())) { |
| 231 | + if (type == "hash" && !/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(stream.current())) { |
232 | 232 | override += " error"; |
233 | 233 | } else if (type == "word") { |
234 | 234 | wordAsValue(stream); |
@@ -631,7 +631,7 @@ CodeMirror.defineMode("css", function(config, parserConfig) { |
631 | 631 | "arabic-indic", "armenian", "asterisks", "attr", "auto", "auto-flow", "avoid", "avoid-column", "avoid-page", |
632 | 632 | "avoid-region", "axis-pan", "background", "backwards", "baseline", "below", "bidi-override", "binary", |
633 | 633 | "bengali", "blink", "block", "block-axis", "blur", "bold", "bolder", "border", "border-box", |
634 | | - "both", "bottom", "break", "break-all", "break-word", "brightness", "bullets", "button", "button-bevel", |
| 634 | + "both", "bottom", "break", "break-all", "break-word", "brightness", "bullets", "button", |
635 | 635 | "buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "cambodian", |
636 | 636 | "capitalize", "caps-lock-indicator", "caption", "captiontext", "caret", |
637 | 637 | "cell", "center", "checkbox", "circle", "cjk-decimal", "cjk-earthly-branch", |
@@ -669,14 +669,10 @@ CodeMirror.defineMode("css", function(config, parserConfig) { |
669 | 669 | "local", "logical", "loud", "lower", "lower-alpha", "lower-armenian", |
670 | 670 | "lower-greek", "lower-hexadecimal", "lower-latin", "lower-norwegian", |
671 | 671 | "lower-roman", "lowercase", "ltr", "luminosity", "malayalam", "manipulation", "match", "matrix", "matrix3d", |
672 | | - "media-controls-background", "media-current-time-display", |
673 | | - "media-fullscreen-button", "media-mute-button", "media-play-button", |
674 | | - "media-return-to-realtime-button", "media-rewind-button", |
675 | | - "media-seek-back-button", "media-seek-forward-button", "media-slider", |
676 | | - "media-sliderthumb", "media-time-remaining-display", "media-volume-slider", |
677 | | - "media-volume-slider-container", "media-volume-sliderthumb", "medium", |
678 | | - "menu", "menulist", "menulist-button", "menulist-text", |
679 | | - "menulist-textfield", "menutext", "message-box", "middle", "min-intrinsic", |
| 672 | + "media-play-button", "media-slider", "media-sliderthumb", |
| 673 | + "media-volume-slider", "media-volume-sliderthumb", "medium", |
| 674 | + "menu", "menulist", "menulist-button", |
| 675 | + "menutext", "message-box", "middle", "min-intrinsic", |
680 | 676 | "mix", "mongolian", "monospace", "move", "multiple", "multiple_mask_images", "multiply", "myanmar", "n-resize", |
681 | 677 | "narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop", |
682 | 678 | "no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap", |
|
0 commit comments