@codemirror/lang-rust
Advanced tools
Comparing version 6.0.0 to 6.0.1
@@ -0,1 +1,7 @@ | ||
## 6.0.1 (2022-10-24) | ||
### Bug fixes | ||
Allow prefixed strings to be closed by `closeBrackets`. | ||
## 6.0.0 (2022-06-08) | ||
@@ -2,0 +8,0 @@ |
@@ -10,2 +10,3 @@ import { parser } from '@lezer/rust'; | ||
const rustLanguage = /*@__PURE__*/LRLanguage.define({ | ||
name: "rust", | ||
parser: /*@__PURE__*/parser.configure({ | ||
@@ -30,3 +31,4 @@ props: [ | ||
commentTokens: { line: "//", block: { open: "/*", close: "*/" } }, | ||
indentOnInput: /^\s*(?:\{|\})$/ | ||
indentOnInput: /^\s*(?:\{|\})$/, | ||
closeBrackets: { stringPrefixes: ["b", "r", "br"] } | ||
} | ||
@@ -33,0 +35,0 @@ }); |
{ | ||
"name": "@codemirror/lang-rust", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "Rust language support for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -5,10 +5,10 @@ <!-- NOTE: README.md is generated from src/README.md --> | ||
[ [**WEBSITE**](https://codemirror.net/6/) | [**ISSUES**](https://github.com/codemirror/codemirror.next/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/lang-rust/blob/main/CHANGELOG.md) ] | ||
[ [**WEBSITE**](https://codemirror.net/) | [**ISSUES**](https://github.com/codemirror/dev/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/lang-rust/blob/main/CHANGELOG.md) ] | ||
This package implements Rust language support for the | ||
[CodeMirror](https://codemirror.net/6/) code editor. | ||
[CodeMirror](https://codemirror.net/) code editor. | ||
The [project page](https://codemirror.net/6/) has more information, a | ||
number of [examples](https://codemirror.net/6/examples/) and the | ||
[documentation](https://codemirror.net/6/docs/). | ||
The [project page](https://codemirror.net/) has more information, a | ||
number of [examples](https://codemirror.net/examples/) and the | ||
[documentation](https://codemirror.net/docs/). | ||
@@ -26,3 +26,3 @@ This code is released under an | ||
<dt id="user-content-rust"> | ||
<code><strong><a href="#user-content-rust">rust</a></strong>() → <a href="https://codemirror.net/6/docs/ref#language.LanguageSupport">LanguageSupport</a></code></dt> | ||
<code><strong><a href="#user-content-rust">rust</a></strong>() → <a href="https://codemirror.net/docs/ref#language.LanguageSupport">LanguageSupport</a></code></dt> | ||
@@ -32,3 +32,3 @@ <dd><p>Rust language support</p> | ||
<dt id="user-content-rustlanguage"> | ||
<code><strong><a href="#user-content-rustlanguage">rustLanguage</a></strong>: <a href="https://codemirror.net/6/docs/ref#language.LezerLanguage">LezerLanguage</a></code></dt> | ||
<code><strong><a href="#user-content-rustlanguage">rustLanguage</a></strong>: <a href="https://codemirror.net/docs/ref#language.LezerLanguage">LezerLanguage</a></code></dt> | ||
@@ -35,0 +35,0 @@ <dd><p>A syntax provider based on the <a href="https://github.com/lezer-parser/rust">Lezer Rust |
Sorry, the diff of this file is not supported yet
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
8219
93