Bump codemirror 5.65.9 to 5.65.10

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2022-11-20 16:49:49 +01:00
parent 156da4e3d2
commit 151e6247c6
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889
6 changed files with 15 additions and 14 deletions

View File

@ -23,16 +23,16 @@
function isArray(val) { return Object.prototype.toString.call(val) == "[object Array]" }
function getModeConf(editor) {
return editor.getModeAt(editor.getCursor()).config || CodeMirror.resolveMode("text/x-sql")
}
function getKeywords(editor) {
var mode = editor.doc.modeOption;
if (mode === "sql") mode = "text/x-sql";
return CodeMirror.resolveMode(mode).keywords;
return getModeConf(editor).keywords || []
}
function getIdentifierQuote(editor) {
var mode = editor.doc.modeOption;
if (mode === "sql") mode = "text/x-sql";
return CodeMirror.resolveMode(mode).identifierQuote || "`";
return getModeConf(editor).identifierQuote || "`";
}
function getText(item) {

View File

@ -9865,7 +9865,7 @@
addLegacyProps(CodeMirror);
CodeMirror.version = "5.65.9";
CodeMirror.version = "5.65.10";
return CodeMirror;

View File

@ -779,7 +779,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
if (type == "async" ||
(type == "variable" &&
(value == "static" || value == "get" || value == "set" || (isTS && isModifier(value))) &&
cx.stream.match(/^\s+[\w$\xa1-\uffff]/, false))) {
cx.stream.match(/^\s+#?[\w$\xa1-\uffff]/, false))) {
cx.marked = "keyword";
return cont(classBody);
}

View File

@ -207,7 +207,8 @@ CodeMirror.defineMode("sql", function(config, parserConfig) {
blockCommentStart: "/*",
blockCommentEnd: "*/",
lineComment: support.commentSlashSlash ? "//" : support.commentHash ? "#" : "--",
closeBrackets: "()[]{}''\"\"``"
closeBrackets: "()[]{}''\"\"``",
config: parserConfig
};
});

View File

@ -17,7 +17,7 @@
"@zxcvbn-ts/core": "^2.0.1",
"autoprefixer": "^10.4.7",
"bootstrap": "5.2.0",
"codemirror": "5.65.9",
"codemirror": "5.65.10",
"jquery": "3.6.0",
"jquery-debounce-throttle": "^1.0.6-rc.0",
"jquery-migrate": "3.4.0",

View File

@ -1870,10 +1870,10 @@ co@^4.6.0:
resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184"
integrity sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==
codemirror@5.65.9:
version "5.65.9"
resolved "https://registry.yarnpkg.com/codemirror/-/codemirror-5.65.9.tgz#ec70c92aa206ee4c9853d5f1e7c4ed356cdab68c"
integrity sha512-19Jox5sAKpusTDgqgKB5dawPpQcY+ipQK7xoEI+MVucEF9qqFaXpeqY1KaoyGBso/wHQoDa4HMMxMjdsS3Zzzw==
codemirror@5.65.10:
version "5.65.10"
resolved "https://registry.yarnpkg.com/codemirror/-/codemirror-5.65.10.tgz#4276a93b8534ce91f14b733ba9a1ac949666eac9"
integrity sha512-IXAG5wlhbgcTJ6rZZcmi4+sjWIbJqIGfeg3tNa3yX84Jb3T4huS5qzQAo/cUisc1l3bI47WZodpyf7cYcocDKg==
collect-v8-coverage@^1.0.0:
version "1.0.1"