Socket
Socket
Sign inDemoInstall

@codemirror/language

Package Overview
Dependencies
Maintainers
2
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/language - npm Package Versions

1345

6.6.0

Diff

Changelog

Source

6.6.0 (2023-02-13)

New features

Syntax-driven language data queries now support sublanguages, which make it possible to return different data for specific parts of the tree produced by a single language.

marijn
published 6.5.0 •

Changelog

Source

6.5.0 (2023-02-07)

Bug fixes

Make indentation for stream languages more reliable by having StringStream.indentation return overridden indentations from the indent context.

New features

The toggleFold command folds or unfolds depending on whether there's an existing folded range on the current line.

indentUnit now accepts any (repeated) whitespace character, not just spaces and tabs.

marijn
published 6.4.0 •

Changelog

Source

6.4.0 (2023-01-12)

New features

The bracketMatchingHandle node prop can now be used to limit bracket matching behavior for larger nodes to a single subnode (for example the tag name of an HTML tag).

marijn
published 6.3.2 •

Changelog

Source

6.3.2 (2022-12-16)

Bug fixes

Fix a bug that caused ensureSyntaxTree to return incomplete trees when using a viewport-aware parser like StreamLanguage.

marijn
published 6.3.1 •

Changelog

Source

6.3.1 (2022-11-14)

Bug fixes

Make syntax-based folding include syntax nodes that start right at the end of a line as potential fold targets.

Fix the indentService protocol to allow a distinction between declining to handle the indentation and returning null to indicate the line has no definite indentation.

marijn
published 6.3.0 •

Changelog

Source

6.3.0 (2022-10-24)

New features

HighlightStyle objects now have a specs property holding the tag styles that were used to define them.

Language objects now have a name field holding the language name.

marijn
published 6.2.1 •

Changelog

Source

6.2.1 (2022-07-21)

Bug fixes

Fix a bug where bracketMatching would incorrectly match nested brackets in syntax trees that put multiple pairs of brackets in the same parent node.

Fix a bug that could cause indentRange to loop infinitely.

marijn
published 6.2.0 •

Changelog

Source

6.2.0 (2022-06-30)

Bug fixes

Fix a bug that prevented bracket matching to recognize plain brackets inside a language parsed as an overlay.

New features

The indentRange function provides an easy way to programatically auto-indent a range of the document.

marijn
published 6.1.0 •

Changelog

Source

6.1.0 (2022-06-20)

New features

The foldState field is now public, and can be used to serialize and deserialize the fold state.

marijn
published 6.0.0 •

Changelog

Source

6.0.0 (2022-06-08)

New features

The foldingChanged option to foldGutter can now be used to trigger a recomputation of the fold markers.

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