{"name":"@codemirror/lang-rust","version":"0.19.1","keywords":["editor","code"],"author":{"url":"http://marijnhaverbeke.nl","name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","_id":"@codemirror/lang-rust@0.19.1","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":"3ed1386bbc825ae5dbd09b28f31a9ee4ec0dae86","tarball":"http://registry-npm.ywwl.com/@codemirror/lang-rust/download/@codemirror/lang-rust-0.19.1.tgz","fileCount":8,"integrity":"sha512-T/LzRC5bMPvkMg11kr/jnpScqsE68B+F0SYqjyQTzQ+666RhHJICDCSlk7wbIrJi/fagpBwvuAmo2LgQ8dcGsQ==","signatures":[{"sig":"MEYCIQDN3y/ysn0AhtXURiokLCRch8uBgNk06PBtuxEryj8jTQIhAOF/bBBn9EZAtLXfHQaurBqGiruEsD1N6S4YufVlt/Bs","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12534,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhE9CCCRA9TVsSAnZWagAAPRQP/R9qn272pIov4ldf9S9s\n11HCHT33URUvBKwSQ5Ii//ClZtl1mrtp/s752Muz2AHvO6X5KKGhyl7/d2iQ\nLExZOAuYJQpj3M/llwSEmwrfgsgWikn5lyF6rNwxFhTTu91eh4/tiwlAjlvr\nWDhuFjR8Wa/17MD/FWdgdBAdLi/JWQ+//d7xPRAflb7s6vjYq58mFaUzoxN2\nvd14DhWfR0998apP1QUcmt/nwmAE5629aG5HMGMwVoPVr1QJ19ZKPQzj4yzT\nyC8vK3Sxi2fWV57zSzbhj2PQAbk+vaYQTussvOY2ubbVpB0d0T4YEJjqMj7K\n9Mp2DX3gxSSsDcF20AyD5BWEYB3tQrTg/yJYQeNsYv0LQyfp/DbbrP2TYMjH\nDNo/JJS/bD+eYnxbrDhpdnpEXQ2tYHX1/GGdUTOj9MloJrExis5k/rPztTJE\nPDhTcWQRpJCJ08RrmXkJyeaVs4JIXBUvf2LnqyzpqvNssLb9wH5qf0W79ef+\nA1noGLkJexfJAFvg+0xcQ2SVm3mfX2p02R1Ey0TGuLJctVns8LbDnHean5iA\nOs4UHUkJOQo9WIIUAVSUFoJsoP4BzaryELvk19zfec95boO4+dn7nSA2AU0Z\ndfLFVZMdVwRgbxkjeDerLikRYRi54HJeNrqN4kPQDxR/LMi89aiQo4Mm1SGo\nLsGg\r\n=Nv3e\r\n-----END PGP SIGNATURE-----\r\n","size":3821,"noattachment":false,"key":"/@codemirror/lang-rust/-/@codemirror/lang-rust-0.19.1.tgz"},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{"import":"./dist/index.js","require":"./dist/index.cjs"},"gitHead":"18c64f547571a6ebb2b25e46e824c91eb24c8a66","scripts":{"test":"cm-runtests","prepare":"cm-buildhelper src/rust.ts"},"_npmUser":{"name":"marijn","email":"marijnh@gmail.com"},"repository":{"url":"git+https://github.com/codemirror/lang-rust.git","type":"git"},"_npmVersion":"7.18.1","description":"Rust language support for the CodeMirror code editor","directories":{},"sideEffects":false,"_nodeVersion":"16.4.0","dependencies":{"@lezer/rust":"^0.15.0","@codemirror/language":"^0.19.0","@codemirror/highlight":"^0.19.0"},"_hasShrinkwrap":false,"devDependencies":{"@codemirror/buildhelper":"^0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/lang-rust_0.19.1_1628688514310_0.3801014601770707","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":1628688514466,"_cnpm_publish_time":1628688514466,"dist-tags":{"latest":"6.0.2"}}