{"name":"@codemirror/lang-rust","version":"0.18.0","keywords":["editor","code"],"author":{"url":"http://marijnhaverbeke.nl","name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","_id":"@codemirror/lang-rust@0.18.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":"0a605cf7f1fd43d145723e1b6c9514fbaf6e4aac","tarball":"http://registry-npm.ywwl.com/@codemirror/lang-rust/download/@codemirror/lang-rust-0.18.0.tgz","fileCount":10,"integrity":"sha512-qlzSzDmiUr4UsgQvyRSchMC4xZGX/1FfsikWOC/NL4m7peqlZLWrvzve0z/WNsLvbEC/E+GiiftxdUsqFYsJAg==","signatures":[{"sig":"MEUCIAYCqQSplkPYbJglHdu7zMi5eexpv4v5n5bmrKcu5YQTAiEAm4NQ425Kt4wWDO9VdAfnIROi53bYhI8jXTFkcauQDMI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18656,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgP708CRA9TVsSAnZWagAAdAUQAJ5ZuxEUMNtmCI2vJKyc\nt2d2VABR4AEI0fO8vGuzAW9oM/bOudSKdSUdPV0Q9T6O9yQzw2rdL5oLo5QQ\n1Bx73E0q2+xxkVpRn2kO45cTPXPzdtB3rUHSktDUHSZR06+J8wHChCEkCdp7\nlkS0Lc2vDLgBa5pEbnsN3UA3OlbjRfWHJUXNPVaBxkSH8+6v0HQ2RWjKNhjl\nlZPefUPlxM1InzmR0DWRdNJ3o7o6Wn65J/AfqUZdV2wWKl8RA9ppxMuw8ATt\niMZ3qKTW/NFd5BUv/7mNDLinq1DYWzauyYNnTJw0pIPA3UvAN/i9JnHyIibw\nIKAbH5q+l+2R625ly4YQ1zPyNswxTjTUrNMgUZYd3F/67w5xY2DE9axpQN8n\nno8OIsxh9l3P4JcErQSFFMxX9ta6FlGRokHA0xvpB2TZdIFSi+Hdf1m3vWkg\nwUXDt9s17ZVcvFgJFrKuI5apMoGIihSx6lXb699SIhifPab4oCLaK0EyHyC5\ngLtacdFAkKRrslbIJQh0lvxEwJGUvwAP3MhzXUBeq0f42hdp4IKQSxj7g3bx\n3IgmksFNAsXtwL8xD3PjUY2gl42D3GR9/lOCPlxBHzj4utTz+fQJYsil9J98\nXHUPZhyKLz+Nsm2os7wtrHZiSADxgeNWe2Hw8fLFOu4dt6XXBjj7xBjFHSrR\n+zaM\r\n=9JEx\r\n-----END PGP SIGNATURE-----\r\n","size":5285,"noattachment":false,"key":"/@codemirror/lang-rust/-/@codemirror/lang-rust-0.18.0.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":"ccbd4c916040bbc8015d317f06f35cb5eab0ceb5","scripts":{"test":"echo 'No tests'","prepare":"tsc -p tsconfig.local.json && rollup -c"},"_npmUser":{"name":"marijn","email":"marijnh@gmail.com"},"repository":{"url":"git+https://github.com/codemirror/lang-rust.git","type":"git"},"_npmVersion":"7.5.3","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.18.0","@codemirror/highlight":"^0.18.0"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^2.35.1","typescript":"^4.1.3","rollup-plugin-dts":"^2.0.1"},"_npmOperationalInternal":{"tmp":"tmp/lang-rust_0.18.0_1614789948163_0.16343264298697635","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":1614789948296,"_cnpm_publish_time":1614789948296,"dist-tags":{"latest":"6.0.2"}}