@codemirror/lang-sass
Version:
Sass/SCSS language support for the CodeMirror code editor
52 lines (38 loc) • 2.73 kB
Markdown
<!-- NOTE: README.md is generated from src/README.md -->
# @codemirror/lang-sass [](https://www.npmjs.org/package/@codemirror/lang-sass)
[ [**WEBSITE**](https://codemirror.net/) | [**ISSUES**](https://github.com/codemirror/dev/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/lang-sass/blob/main/CHANGELOG.md) ]
This package implements Sass/SCSS language support for the
[CodeMirror](https://codemirror.net/) code editor.
The [project page](https://codemirror.net/) has more information, a
number of [examples](https://codemirror.net/examples/) and the
[documentation](https://codemirror.net/docs/).
This code is released under an
[MIT license](https://github.com/codemirror/lang-css/tree/main/LICENSE).
We aim to be an inclusive, welcoming community. To make that explicit,
we have a [code of
conduct](http://contributor-covenant.org/version/1/1/0/) that applies
to communication around the project.
## API Reference
<dl>
<dt id="user-content-sass">
<code><strong><a href="#user-content-sass">sass</a></strong>(<a id="user-content-sass^config" href="#user-content-sass^config">config</a>⁠?: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a>) → <a href="https://codemirror.net/docs/ref#language.LanguageSupport">LanguageSupport</a></code></dt>
<dd><p>Language support for CSS.</p>
<dl><dt id="user-content-sass^config">
<code><strong><a href="#user-content-sass^config">config</a></strong></code></dt>
<dd><dl><dt id="user-content-sass^config.indented">
<code><strong><a href="#user-content-sass^config.indented">indented</a></strong>⁠?: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code></dt>
<dd><p>When enabled, support classical indentation-based syntax. Default
to false (SCSS syntax).</p>
</dd></dl></dd></dl></dd>
<dt id="user-content-sasslanguage">
<code><strong><a href="#user-content-sasslanguage">sassLanguage</a></strong>: <a href="https://codemirror.net/docs/ref#language.LRLanguage">LRLanguage</a></code></dt>
<dd><p>A language provider based on the <a href="https://github.com/lezer-parser/sass">Lezer Sass
parser</a>, extended with
highlighting and indentation information.</p>
</dd>
<dt id="user-content-sasscompletionsource">
<code><strong><a href="#user-content-sasscompletionsource">sassCompletionSource</a></strong>: <a href="https://codemirror.net/docs/ref#autocomplete.CompletionSource">CompletionSource</a></code></dt>
<dd><p>Property, variable, $-variable, and value keyword completion
source.</p>
</dd>
</dl>