{"name":"@codemirror/lang-rust","version":"0.17.0","keywords":["editor","code"],"author":{"url":"http://marijnhaverbeke.nl","name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","_id":"@codemirror/lang-rust@0.17.0","maintainers":[{"name":"adrianheine","email":"mail@adrianheine.de"},{"name":"marijn","email":"marijnh@gmail.com"}],"homepage":"https://github.com/codemirror/lang-rust#readme","bugs":{"url":"https://github.com/codemirror/lang-rust/issues"},"dist":{"shasum":"506223655f01f51e4a9c15e1c26fc967936ceda3","tarball":"http://registry-npm.ywwl.com/@codemirror/lang-rust/download/@codemirror/lang-rust-0.17.0.tgz","fileCount":7,"integrity":"sha512-7DEOnCTxBQwZQBKO4+3yQHrb8iy+RH+OyqHF6ymoCRwC+tJ3h8CgBOG8GoxcWad+3dezH++hAumB+a87FPfoMQ==","signatures":[{"sig":"MEUCIQDXYDOzRNCVDEzZX343SyABmQRiAZn2cH8gmB1deoKPgQIgHtgrEs1cerLgtYxa/9nbJaPEIh2EQ5pf7oayWMoRSxc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13020,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf64lnCRA9TVsSAnZWagAAJGAP/i+mw3jdkEDkYuxeeFp/\nrnufwosrp3V5eqHlwvQvLAOZrKZDFbM8b4oass7kZcievShkHmduWh4prfKo\n8uhvMRRZOMHYcOSRRm2wJ8xsl78vpkjCgcVRYK+4j8WFJ+mMxuobM8ANizim\nxCsEOOM8IO1TAlByLuYhFKGQZHgi8GG8qqhrb99m8M/Hu+B+Zs8H6rReFomR\ns6+gA0QdkrkfG+XAs3gnDQGXqUHHI+4g9Fcpamv5kfcQk9lcXffnH7Vamw40\n7HXgjxvuWIx9me7w4PKqCzVW2f2DjTPAyezhpHMq//n3+ECukIlLYiwsDPVm\nWHnXlCIDYcSiXFpPbzpQvXH1B14XeTcA+NrE+1CYfdI5bmuqiW00M0COnfjS\nUtLqcNAA4kwkHcaaCVjyVpRRzO8E5srMPFD1KxhWoW1MLjCDpVor1h+lmQOe\nrbyWY14TdCmKXSfCcpZYK1B5tRmV2cX8nr51vZQDqAA+vlOmDjev86hhJOax\nAzBM+VVijieWh5HvGxVfltLleuwgry4QXfGqCxIDJ84R13sdsAcVMhAf6QLd\nmOKIl7TF9wRnq3qDZaojK8Bteab+sQ//8tFk0uBekS1OCNhoziqg3i9yUBF4\n7K1ZYVf0jhHqvfe0CNWUdAQwnrwL46ukir5WNczshA7z88ulF876WvUvzHLr\nU5Nh\r\n=wr6T\r\n-----END PGP SIGNATURE-----\r\n","size":4170,"noattachment":false,"key":"/@codemirror/lang-rust/-/@codemirror/lang-rust-0.17.0.tgz"},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","gitHead":"bb3f4bd2751b0cf57ba8b2d95a84ed29e29b678b","scripts":{"test":"echo 'No tests'","prepare":"tsc && rollup -c"},"_npmUser":{"name":"marijn","email":"marijnh@gmail.com"},"repository":{"url":"git+https://github.com/codemirror/lang-rust.git","type":"git"},"_npmVersion":"7.3.0","description":"Rust language support for the CodeMirror code editor","directories":{},"sideEffects":false,"_nodeVersion":"15.5.0","dependencies":{"lezer-rust":"^0.13.0","@codemirror/language":"^0.17.0","@codemirror/highlight":"^0.17.0"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^2.35.1","typescript":"^4.1.3","rollup-plugin-dts":"^2.0.1"},"_npmOperationalInternal":{"tmp":"tmp/lang-rust_0.17.0_1609271655326_0.7395060365747093","host":"s3://npm-registry-packages"},"readme":"<!-- NOTE: README.md is generated from src/README.md -->\n\n# @codemirror/lang-rust [![NPM version](https://img.shields.io/npm/v/@codemirror/lang-rust.svg)](https://www.npmjs.org/package/@codemirror/lang-rust)\n\n[ [**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) ]\n\nThis package implements Rust language support for the\n[CodeMirror](https://codemirror.net/) code editor.\n\nThe [project page](https://codemirror.net/) has more information, a\nnumber of [examples](https://codemirror.net/examples/) and the\n[documentation](https://codemirror.net/docs/).\n\nThis code is released under an\n[MIT license](https://github.com/codemirror/lang-rust/tree/main/LICENSE).\n\nWe aim to be an inclusive, welcoming community. To make that explicit,\nwe have a [code of\nconduct](http://contributor-covenant.org/version/1/1/0/) that applies\nto communication around the project.\n\n## Usage\n\n```javascript\nimport {EditorView, basicSetup} from \"codemirror\"\nimport {rust} from \"@codemirror/lang-rust\"\n\nconst view = new EditorView({\n  parent: document.body,\n  doc: `println!(\"Hello World!\");`,\n  extensions: [basicSetup, rust()]\n})\n```\n\n## API Reference\n\n<dl>\n<dt id=\"user-content-rust\">\n  <code><strong><a href=\"#user-content-rust\">rust</a></strong>() → <a href=\"https://codemirror.net/docs/ref#language.LanguageSupport\">LanguageSupport</a></code></dt>\n\n<dd><p>Rust language support</p>\n</dd>\n<dt id=\"user-content-rustlanguage\">\n  <code><strong><a href=\"#user-content-rustlanguage\">rustLanguage</a></strong>: <a href=\"https://codemirror.net/docs/ref#language.LRLanguage\">LRLanguage</a></code></dt>\n\n<dd><p>A syntax provider based on the <a href=\"https://github.com/lezer-parser/rust\">Lezer Rust\nparser</a>, extended with\nhighlighting and indentation information.</p>\n</dd>\n</dl>\n","publish_time":1609271655474,"_cnpm_publish_time":1609271655474,"dist-tags":{"latest":"6.0.2"}}