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

@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.19.1 to 0.19.2

8

CHANGELOG.md

@@ -0,1 +1,9 @@

## 0.19.2 (2022-03-21)
### Bug fixes
Add syntax highlighting for character literals
Make sure the editor doesn't indent statements with attributes before them.
## 0.19.1 (2021-08-11)

@@ -2,0 +10,0 @@

11

dist/index.js

@@ -15,3 +15,4 @@ import { parser } from '@lezer/rust';

IfExpression: /*@__PURE__*/continuedIndent({ except: /^\s*({|else\b)/ }),
"String BlockComment": () => -1,
"String BlockComment": () => null,
"AttributeItem": cx => cx.continue(),
"Statement MatchArm": /*@__PURE__*/continuedIndent()

@@ -27,3 +28,4 @@ }),

/*@__PURE__*/styleTags({
"const macro_rules mod struct union enum type fn impl trait let use crate static": tags.definitionKeyword,
"const macro_rules struct union enum type fn impl trait let static": tags.definitionKeyword,
"mod use crate": tags.moduleKeyword,
"pub unsafe async mut extern default move": tags.modifier,

@@ -35,2 +37,3 @@ "for if else loop while match continue break return await": tags.controlKeyword,

String: tags.string,
Char: tags.character,
RawString: /*@__PURE__*/tags.special(tags.string),

@@ -41,2 +44,3 @@ Boolean: tags.bool,

BoundIdentifier: /*@__PURE__*/tags.definition(tags.variableName),
"FunctionItem/BoundIdentifier": /*@__PURE__*/tags.function(/*@__PURE__*/tags.definition(tags.variableName)),
LoopLabel: tags.labelName,

@@ -65,5 +69,6 @@ FieldIdentifier: tags.propertyName,

"{ }": tags.brace,
".": tags.derefOperator,
". DerefOp": tags.derefOperator,
"&": tags.operator,
", ; ::": tags.separator,
"Attribute/...": tags.meta,
})

@@ -70,0 +75,0 @@ ]

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

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

"dependencies": {
"@codemirror/highlight": "^0.19.0",
"@codemirror/highlight": "^0.19.7",
"@codemirror/language": "^0.19.0",

@@ -32,0 +32,0 @@ "@lezer/rust": "^0.15.0"

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