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.19.2 to 0.20.0

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## 0.20.0 (2022-04-20)
### Breaking changes
Update dependencies to 0.20.0
## 0.19.2 (2022-03-21)

@@ -2,0 +8,0 @@

45

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

@@ -25,46 +24,2 @@ /**

return undefined;
}),
/*@__PURE__*/styleTags({
"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,
"for if else loop while match continue break return await": tags.controlKeyword,
"as in ref": tags.operatorKeyword,
"where _ crate super dyn": tags.keyword,
"self": tags.self,
String: tags.string,
Char: tags.character,
RawString: /*@__PURE__*/tags.special(tags.string),
Boolean: tags.bool,
Identifier: tags.variableName,
"CallExpression/Identifier": /*@__PURE__*/tags.function(tags.variableName),
BoundIdentifier: /*@__PURE__*/tags.definition(tags.variableName),
"FunctionItem/BoundIdentifier": /*@__PURE__*/tags.function(/*@__PURE__*/tags.definition(tags.variableName)),
LoopLabel: tags.labelName,
FieldIdentifier: tags.propertyName,
"CallExpression/FieldExpression/FieldIdentifier": /*@__PURE__*/tags.function(tags.propertyName),
Lifetime: /*@__PURE__*/tags.special(tags.variableName),
ScopeIdentifier: tags.namespace,
TypeIdentifier: tags.typeName,
"MacroInvocation/Identifier MacroInvocation/ScopedIdentifier/Identifier": tags.macroName,
"MacroInvocation/TypeIdentifier MacroInvocation/ScopedIdentifier/TypeIdentifier": tags.macroName,
"\"!\"": tags.macroName,
UpdateOp: tags.updateOperator,
LineComment: tags.lineComment,
BlockComment: tags.blockComment,
Integer: tags.integer,
Float: tags.float,
ArithOp: tags.arithmeticOperator,
LogicOp: tags.logicOperator,
BitOp: tags.bitwiseOperator,
CompareOp: tags.compareOperator,
"=": tags.definitionOperator,
".. ... => ->": tags.punctuation,
"( )": tags.paren,
"[ ]": tags.squareBracket,
"{ }": tags.brace,
". DerefOp": tags.derefOperator,
"&": tags.operator,
", ; ::": tags.separator,
"Attribute/...": tags.meta,
})

@@ -71,0 +26,0 @@ ]

7

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

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

"dependencies": {
"@codemirror/highlight": "^0.19.7",
"@codemirror/language": "^0.19.0",
"@lezer/rust": "^0.15.0"
"@codemirror/language": "^0.20.0",
"@lezer/rust": "^0.16.0"
},

@@ -34,0 +33,0 @@ "devDependencies": {

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