@codemirror/lang-rust
Advanced tools
Comparing version 0.19.1 to 0.19.2
@@ -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 @@ |
@@ -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
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
13352
179