@codemirror/lang-rust
Advanced tools
Comparing version 0.19.2 to 0.20.0
@@ -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 @@ |
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 @@ ] |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2
7932
89
+ Added@codemirror/language@0.20.2(transitive)
+ Added@codemirror/state@0.20.1(transitive)
+ Added@codemirror/view@0.20.7(transitive)
+ Added@lezer/common@0.16.1(transitive)
+ Added@lezer/highlight@0.16.0(transitive)
+ Added@lezer/lr@0.16.3(transitive)
+ Added@lezer/rust@0.16.1(transitive)
- Removed@codemirror/highlight@^0.19.7
- Removed@codemirror/highlight@0.19.8(transitive)
- Removed@codemirror/language@0.19.10(transitive)
- Removed@codemirror/rangeset@0.19.9(transitive)
- Removed@codemirror/state@0.19.9(transitive)
- Removed@codemirror/text@0.19.6(transitive)
- Removed@codemirror/view@0.19.48(transitive)
- Removed@lezer/common@0.15.12(transitive)
- Removed@lezer/lr@0.15.8(transitive)
- Removed@lezer/rust@0.15.1(transitive)
Updated@codemirror/language@^0.20.0
Updated@lezer/rust@^0.16.0