Files
echo-nexus/node_modules/@codemirror/lang-yaml/dist/index.d.ts
T

23 lines
660 B
TypeScript

import { LRLanguage, LanguageSupport, Language } from '@codemirror/language';
/**
A language provider based on the [Lezer YAML
parser](https://github.com/lezer-parser/yaml), extended with
highlighting and indentation information.
*/
declare const yamlLanguage: LRLanguage;
/**
Language support for YAML.
*/
declare function yaml(): LanguageSupport;
/**
Returns language support for a document parsed as `config.content`
with an optional YAML "frontmatter" delimited by lines that
contain three dashes.
*/
declare function yamlFrontmatter(config: {
content: Language | LanguageSupport;
}): LanguageSupport;
export { yaml, yamlFrontmatter, yamlLanguage };