Diffdown is a real-time collaborative Markdown editor/previewer built on the AT Protocol diffdown.com
1import { LRLanguage, LanguageSupport } from '@codemirror/language'; 2import { CompletionSource } from '@codemirror/autocomplete'; 3import { SyntaxNodeRef } from '@lezer/common'; 4 5/** 6Create a completion source for a CSS dialect, providing a 7predicate for determining what kind of syntax node can act as a 8completable variable. This is used by language modes like Sass and 9Less to reuse this package's completion logic. 10*/ 11declare const defineCSSCompletionSource: (isVariable: (node: SyntaxNodeRef) => boolean) => CompletionSource; 12/** 13CSS property, variable, and value keyword completion source. 14*/ 15declare const cssCompletionSource: CompletionSource; 16 17/** 18A language provider based on the [Lezer CSS 19parser](https://github.com/lezer-parser/css), extended with 20highlighting and indentation information. 21*/ 22declare const cssLanguage: LRLanguage; 23/** 24Language support for CSS. 25*/ 26declare function css(): LanguageSupport; 27 28export { css, cssCompletionSource, cssLanguage, defineCSSCompletionSource };