Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@codemirror/legacy-modes

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/legacy-modes - npm Package Compare versions

Comparing version 6.4.0 to 6.4.1

8

CHANGELOG.md

@@ -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 @@

2

mode/commonlisp.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc