CodeMirror 5.58.2
This commit is contained in:
parent
2af83ee846
commit
3a615e4e06
6
package-lock.json
generated
6
package-lock.json
generated
|
@ -1917,9 +1917,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"codemirror": {
|
||||
"version": "5.58.0",
|
||||
"resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.58.0.tgz",
|
||||
"integrity": "sha512-OUK+7EgaYnLyC0F09UWjckLWvviy02IDDGTW5Zmj60a3gdGnFtUM6rVsqrfl5+YSylQVQBNfAGG4KF7tQOb4/Q=="
|
||||
"version": "5.58.2",
|
||||
"resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.58.2.tgz",
|
||||
"integrity": "sha512-K/hOh24cCwRutd1Mk3uLtjWzNISOkm4fvXiMO7LucCrqbh6aJDdtqUziim3MZUI6wOY0rvY1SlL1Ork01uMy6w=="
|
||||
},
|
||||
"collection-visit": {
|
||||
"version": "1.0.0",
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"repository": "openstyles/stylus",
|
||||
"author": "Stylus Team",
|
||||
"dependencies": {
|
||||
"codemirror": "^5.58.0",
|
||||
"codemirror": "^5.58.2",
|
||||
"db-to-cloud": "^0.4.5",
|
||||
"jsonlint": "^1.6.3",
|
||||
"less-bundle": "github:openstyles/less-bundle#v0.1.0",
|
||||
|
|
2
vendor/codemirror/README.md
vendored
2
vendor/codemirror/README.md
vendored
|
@ -1,4 +1,4 @@
|
|||
## codemirror v5.58.0
|
||||
## codemirror v5.58.2
|
||||
|
||||
Following files are copied from npm (node_modules):
|
||||
|
||||
|
|
9
vendor/codemirror/lib/codemirror.js
vendored
9
vendor/codemirror/lib/codemirror.js
vendored
|
@ -3479,14 +3479,15 @@
|
|||
if (newTop != screentop) { result.scrollTop = newTop; }
|
||||
}
|
||||
|
||||
var screenleft = cm.curOp && cm.curOp.scrollLeft != null ? cm.curOp.scrollLeft : display.scroller.scrollLeft;
|
||||
var screenw = displayWidth(cm) - (cm.options.fixedGutter ? display.gutters.offsetWidth : 0);
|
||||
var gutterSpace = cm.options.fixedGutter ? 0 : display.gutters.offsetWidth;
|
||||
var screenleft = cm.curOp && cm.curOp.scrollLeft != null ? cm.curOp.scrollLeft : display.scroller.scrollLeft - gutterSpace;
|
||||
var screenw = displayWidth(cm) - display.gutters.offsetWidth;
|
||||
var tooWide = rect.right - rect.left > screenw;
|
||||
if (tooWide) { rect.right = rect.left + screenw; }
|
||||
if (rect.left < 10)
|
||||
{ result.scrollLeft = 0; }
|
||||
else if (rect.left < screenleft)
|
||||
{ result.scrollLeft = Math.max(0, rect.left - (tooWide ? 0 : 10)); }
|
||||
{ result.scrollLeft = Math.max(0, rect.left + gutterSpace - (tooWide ? 0 : 10)); }
|
||||
else if (rect.right > screenw + screenleft - 3)
|
||||
{ result.scrollLeft = rect.right + (tooWide ? 0 : 10) - screenw; }
|
||||
return result
|
||||
|
@ -9781,7 +9782,7 @@
|
|||
|
||||
addLegacyProps(CodeMirror);
|
||||
|
||||
CodeMirror.version = "5.58.0";
|
||||
CodeMirror.version = "5.58.2";
|
||||
|
||||
return CodeMirror;
|
||||
|
||||
|
|
7
vendor/codemirror/mode/css/css.js
vendored
7
vendor/codemirror/mode/css/css.js
vendored
|
@ -29,7 +29,8 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
|
|||
valueKeywords = parserConfig.valueKeywords || {},
|
||||
allowNested = parserConfig.allowNested,
|
||||
lineComment = parserConfig.lineComment,
|
||||
supportsAtComponent = parserConfig.supportsAtComponent === true;
|
||||
supportsAtComponent = parserConfig.supportsAtComponent === true,
|
||||
highlightNonStandardPropertyKeywords = config.highlightNonStandardPropertyKeywords !== false;
|
||||
|
||||
var type, override;
|
||||
function ret(style, tp) { type = tp; return style; }
|
||||
|
@ -197,7 +198,7 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
|
|||
override = "property";
|
||||
return "maybeprop";
|
||||
} else if (nonStandardPropertyKeywords.hasOwnProperty(word)) {
|
||||
override = "string-2";
|
||||
override = highlightNonStandardPropertyKeywords ? "string-2" : "property";
|
||||
return "maybeprop";
|
||||
} else if (allowNested) {
|
||||
override = stream.match(/^\s*:(?:\s|$)/, false) ? "property" : "tag";
|
||||
|
@ -291,7 +292,7 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
|
|||
else if (propertyKeywords.hasOwnProperty(word))
|
||||
override = "property";
|
||||
else if (nonStandardPropertyKeywords.hasOwnProperty(word))
|
||||
override = "string-2";
|
||||
override = highlightNonStandardPropertyKeywords ? "string-2" : "property";
|
||||
else if (valueKeywords.hasOwnProperty(word))
|
||||
override = "atom";
|
||||
else if (colorKeywords.hasOwnProperty(word))
|
||||
|
|
|
@ -126,7 +126,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
|
|||
var kw = keywords[word]
|
||||
return ret(kw.type, kw.style, word)
|
||||
}
|
||||
if (word == "async" && stream.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/, false))
|
||||
if (word == "async" && stream.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/, false))
|
||||
return ret("async", "keyword", word)
|
||||
}
|
||||
return ret("variable", "variable", word)
|
||||
|
@ -868,7 +868,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
|
|||
},
|
||||
|
||||
indent: function(state, textAfter) {
|
||||
if (state.tokenize == tokenComment) return CodeMirror.Pass;
|
||||
if (state.tokenize == tokenComment || state.tokenize == tokenQuasi) return CodeMirror.Pass;
|
||||
if (state.tokenize != tokenBase) return 0;
|
||||
var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical, top
|
||||
// Kludge to prevent 'maybelse' from blocking lexical scope pops
|
||||
|
|
3
vendor/codemirror/mode/stylus/stylus.js
vendored
3
vendor/codemirror/mode/stylus/stylus.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user