@codemirror/legacy-modes
Advanced tools
Comparing version 6.4.0 to 6.4.1
@@ -0,1 +1,9 @@ | ||
## 6.4.1 (2024-08-15) | ||
### Bug fixes | ||
Stop treating closing brackets as brackets in the Common Lisp mode. | ||
Fix a bug where the Stylus mode would crash when queried for indentation. | ||
## 6.4.0 (2024-04-05) | ||
@@ -2,0 +10,0 @@ |
@@ -24,3 +24,3 @@ var specialForm = /^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/; | ||
else if (ch == "(") { type = "open"; return "bracket"; } | ||
else if (ch == ")" || ch == "]") { type = "close"; return "bracket"; } | ||
else if (ch == ")") { type = "close"; return "bracket"; } | ||
else if (ch == ";") { stream.skipToEnd(); type = "ws"; return "comment"; } | ||
@@ -27,0 +27,0 @@ else if (/['`,@]/.test(ch)) return null; |
@@ -697,3 +697,3 @@ // developer.mozilla.org/en-US/docs/Web/HTML/Element | ||
lineFirstWord = firstWordOfLine(textAfter), | ||
lineIndent = iCx.lineIndent(iCx.pos), | ||
lineIndent = cx.line.indent, | ||
prevLineFirstWord = state.context.prev ? state.context.prev.line.firstWord : "", | ||
@@ -713,7 +713,7 @@ prevLineIndent = state.context.prev ? state.context.prev.line.indent : lineIndent; | ||
/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(textAfter) || | ||
/^(\+|-)?[a-z][\w-]*\(/i.test(textAfter) || | ||
/^return/.test(textAfter) || | ||
wordIsBlock(lineFirstWord)) { | ||
indent = lineIndent; | ||
} else if (/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(ch) || wordIsTag(lineFirstWord)) { | ||
/^(\+|-)?[a-z][\w-]*\(/i.test(textAfter) || | ||
/^return/.test(textAfter) || | ||
wordIsBlock(lineFirstWord)) { | ||
indent = lineIndent; | ||
} else if (/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(ch) || wordIsTag(lineFirstWord)) { | ||
if (/\,\s*$/.test(prevLineFirstWord)) { | ||
@@ -720,0 +720,0 @@ indent = prevLineIndent; |
{ | ||
"name": "@codemirror/legacy-modes", | ||
"version": "6.4.0", | ||
"version": "6.4.1", | ||
"description": "Collection of ported legacy language modes for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1956964