Socket
Socket
Sign inDemoInstall

@codemirror/lang-rust

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/lang-rust - npm Package Compare versions

Comparing version 0.17.1 to 0.18.0

2

CHANGELOG.md

@@ -0,1 +1,3 @@

## 0.18.0 (2021-03-03)
## 0.17.1 (2021-01-06)

@@ -2,0 +4,0 @@

4

dist/index.js
import { parser } from 'lezer-rust';
import { LezerLanguage, indentNodeProp, continuedIndent, foldNodeProp, LanguageSupport } from '@codemirror/language';
import { LezerLanguage, indentNodeProp, continuedIndent, foldNodeProp, foldInside, LanguageSupport } from '@codemirror/language';
import { styleTags, tags } from '@codemirror/highlight';

@@ -18,3 +18,3 @@

if (/(Block|edTokens|List)$/.test(type.name))
return tree => ({ from: tree.from + 1, to: tree.to - 1 });
return foldInside;
if (type.name == "BlockComment")

@@ -21,0 +21,0 @@ return tree => ({ from: tree.from + 2, to: tree.to - 2 });

{
"name": "@codemirror/lang-rust",
"version": "0.17.1",
"version": "0.18.0",
"description": "Rust language support for the CodeMirror code editor",

@@ -29,4 +29,4 @@ "scripts": {

"dependencies": {
"@codemirror/highlight": "^0.17.0",
"@codemirror/language": "^0.17.0",
"@codemirror/highlight": "^0.18.0",
"@codemirror/language": "^0.18.0",
"lezer-rust": "^0.13.0"

@@ -33,0 +33,0 @@ },

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