{"name":"@codemirror/lang-css","version":"6.2.1","description":"CSS language support for the CodeMirror code editor","scripts":{"test":"cm-runtests","prepare":"cm-buildhelper src/css.ts"},"keywords":["editor","code"],"author":{"name":"Marijn Haverbeke","email":"marijn@haverbeke.berlin","url":"http://marijnhaverbeke.nl"},"type":"module","main":"dist/index.cjs","exports":{"import":"./dist/index.js","require":"./dist/index.cjs"},"types":"dist/index.d.ts","module":"dist/index.js","sideEffects":false,"license":"MIT","dependencies":{"@codemirror/autocomplete":"^6.0.0","@codemirror/language":"^6.0.0","@codemirror/state":"^6.0.0","@lezer/common":"^1.0.2","@lezer/css":"^1.0.0"},"devDependencies":{"@codemirror/buildhelper":"^1.0.0"},"repository":{"type":"git","url":"git+https://github.com/codemirror/lang-css.git"},"gitHead":"c1cfd8e8d8f716bdf6d35e9f2e200b5c736a9956","bugs":{"url":"https://github.com/codemirror/lang-css/issues"},"homepage":"https://github.com/codemirror/lang-css#readme","_id":"@codemirror/lang-css@6.2.1","_nodeVersion":"19.7.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-/UNWDNV5Viwi/1lpr/dIXJNWiwDxpw13I4pTUAsNxZdg6E0mI2kTQb0P2iHczg1Tu+H4EBgJR+hYhKiHKko7qg==","shasum":"5dc0a43b8e3c31f6af7aabd55ff07fe9aef2a227","tarball":"http://registry-npm.ywwl.com/@codemirror/lang-css/download/@codemirror/lang-css-6.2.1.tgz","fileCount":9,"unpackedSize":40059,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBb3ajHpycLuzR5JhjWIKElngxol5OXozx6nwDpyIq8QIhAMxJaJGvz4X+5Vz5SVVYj/ti2q5oiKiK5jCtfPTw46DH"}],"size":8724,"noattachment":false,"key":"/@codemirror/lang-css/-/@codemirror/lang-css-6.2.1.tgz"},"_npmUser":{"name":"marijn","email":"marijn@haverbeke.berlin"},"directories":{},"maintainers":[{"name":"adrianheine","email":"mail@adrianheine.de"},{"name":"marijn","email":"marijn@haverbeke.berlin"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lang-css_6.2.1_1691178018271_0.8483652231128795"},"_hasShrinkwrap":false,"readme":"<!-- NOTE: README.md is generated from src/README.md -->\n\n# @codemirror/lang-css [![NPM version](https://img.shields.io/npm/v/@codemirror/lang-css.svg)](https://www.npmjs.org/package/@codemirror/lang-css)\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-css/blob/main/CHANGELOG.md) ]\n\nThis package implements CSS 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-css/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## API Reference\n\n<dl>\n<dt id=\"user-content-css\">\n  <code><strong><a href=\"#user-content-css\">css</a></strong>() → <a href=\"https://codemirror.net/docs/ref#language.LanguageSupport\">LanguageSupport</a></code></dt>\n\n<dd><p>Language support for CSS.</p>\n</dd>\n<dt id=\"user-content-csslanguage\">\n  <code><strong><a href=\"#user-content-csslanguage\">cssLanguage</a></strong>: <a href=\"https://codemirror.net/docs/ref#language.LRLanguage\">LRLanguage</a></code></dt>\n\n<dd><p>A language provider based on the <a href=\"https://github.com/lezer-parser/css\">Lezer CSS\nparser</a>, extended with\nhighlighting and indentation information.</p>\n</dd>\n<dt id=\"user-content-csscompletionsource\">\n  <code><strong><a href=\"#user-content-csscompletionsource\">cssCompletionSource</a></strong>: <a href=\"https://codemirror.net/docs/ref#autocomplete.CompletionSource\">CompletionSource</a></code></dt>\n\n<dd><p>CSS property, variable, and value keyword completion source.</p>\n</dd>\n<dt id=\"user-content-definecsscompletionsource\">\n  <code><strong><a href=\"#user-content-definecsscompletionsource\">defineCSSCompletionSource</a></strong>(<a id=\"user-content-definecsscompletionsource^isvariable\" href=\"#user-content-definecsscompletionsource^isvariable\">isVariable</a>: fn(<a id=\"user-content-definecsscompletionsource^isvariable^node\" href=\"#user-content-definecsscompletionsource^isvariable^node\">node</a>: <a href=\"https://lezer.codemirror.net/docs/ref/#common.SyntaxNodeRef\">SyntaxNodeRef</a>) → <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\">boolean</a>) → <a href=\"https://codemirror.net/docs/ref#autocomplete.CompletionSource\">CompletionSource</a></code></dt>\n\n<dd><p>Create a completion source for a CSS dialect, providing a\npredicate for determining what kind of syntax node can act as a\ncompletable variable. This is used by language modes like Sass and\nLess to reuse this package's completion logic.</p>\n</dd>\n</dl>\n","publish_time":1691178018435,"_cnpm_publish_time":1691178018435,"dist-tags":{"latest":"6.3.1"}}