Skip to content

Commit ca2981d

Browse files
committed
update simplycode
1 parent 4d962c1 commit ca2981d

9 files changed

Lines changed: 2346 additions & 719 deletions

File tree

package-lock.json

Lines changed: 1809 additions & 496 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

simplycode/index.html

Lines changed: 434 additions & 154 deletions
Large diffs are not rendered by default.

simplycode/js/codemirror/lib/codemirror.js

Lines changed: 85 additions & 50 deletions
Large diffs are not rendered by default.

simplycode/js/codemirror/mode/css/css.js

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// 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
33

44
(function(mod) {
55
if (typeof exports == "object" && typeof module == "object") // CommonJS
@@ -228,7 +228,7 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
228228
if (type == "}" || type == "{") return popAndPass(type, stream, state);
229229
if (type == "(") return pushContext(state, stream, "parens");
230230

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())) {
232232
override += " error";
233233
} else if (type == "word") {
234234
wordAsValue(stream);
@@ -631,7 +631,7 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
631631
"arabic-indic", "armenian", "asterisks", "attr", "auto", "auto-flow", "avoid", "avoid-column", "avoid-page",
632632
"avoid-region", "axis-pan", "background", "backwards", "baseline", "below", "bidi-override", "binary",
633633
"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",
635635
"buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "cambodian",
636636
"capitalize", "caps-lock-indicator", "caption", "captiontext", "caret",
637637
"cell", "center", "checkbox", "circle", "cjk-decimal", "cjk-earthly-branch",
@@ -669,14 +669,10 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
669669
"local", "logical", "loud", "lower", "lower-alpha", "lower-armenian",
670670
"lower-greek", "lower-hexadecimal", "lower-latin", "lower-norwegian",
671671
"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",
680676
"mix", "mongolian", "monospace", "move", "multiple", "multiple_mask_images", "multiply", "myanmar", "n-resize",
681677
"narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop",
682678
"no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap",

simplycode/js/codemirror/mode/htmlmixed/htmlmixed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// 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
33

44
(function(mod) {
55
if (typeof exports == "object" && typeof module == "object") // CommonJS

simplycode/js/codemirror/mode/javascript/javascript.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// 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
33

44
(function(mod) {
55
if (typeof exports == "object" && typeof module == "object") // CommonJS
@@ -779,7 +779,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
779779
if (type == "async" ||
780780
(type == "variable" &&
781781
(value == "static" || value == "get" || value == "set" || (isTS && isModifier(value))) &&
782-
cx.stream.match(/^\s+[\w$\xa1-\uffff]/, false))) {
782+
cx.stream.match(/^\s+#?[\w$\xa1-\uffff]/, false))) {
783783
cx.marked = "keyword";
784784
return cont(classBody);
785785
}

simplycode/js/codemirror/mode/xml/xml.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// 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
33

44
(function(mod) {
55
if (typeof exports == "object" && typeof module == "object") // CommonJS

simplycode/js/qunit/qunit.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* QUnit 2.24.1
2+
* QUnit 2.24.2
33
* https://qunitjs.com/
44
*
55
* Copyright OpenJS Foundation and other contributors

simplycode/js/qunit/qunit.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* QUnit 2.24.1
2+
* QUnit 2.24.2
33
* https://qunitjs.com/
44
*
55
* Copyright OpenJS Foundation and other contributors
@@ -3905,7 +3905,10 @@
39053905
// cause data loss or invalid YAML syntax.
39063906
//
39073907
// - Quotes, escapes, line breaks, or JSON-like stuff.
3908-
var rSpecialJson = /['"\\/[{}\]\r\n]/;
3908+
// - Not allowed in YAML unquoted strings per https://yaml.org/spec/1.2.2/#733-plain-style
3909+
// * ": " (colon followed by space)
3910+
// * " #" (space followed by hash)
3911+
var rSpecialJson = /['"\\/[{}\]\r\n|:#]/;
39093912

39103913
// - Characters that are special at the start of a YAML value
39113914
var rSpecialYaml = /[-?:,[\]{}#&*!|=>'"%@`]/;
@@ -5463,7 +5466,7 @@
54635466
QUnit.isLocal = window$1 && window$1.location && window$1.location.protocol === 'file:';
54645467

54655468
// Expose the current QUnit version
5466-
QUnit.version = '2.24.1';
5469+
QUnit.version = '2.24.2';
54675470
extend(QUnit, {
54685471
config: config,
54695472
diff: diff,

0 commit comments

Comments
 (0)