15 lines
365 B
TypeScript
15 lines
365 B
TypeScript
import { LRLanguage, LanguageSupport } from '@codemirror/language';
|
|
|
|
/**
|
|
A syntax provider based on the [Lezer Rust
|
|
parser](https://github.com/lezer-parser/rust), extended with
|
|
highlighting and indentation information.
|
|
*/
|
|
declare const rustLanguage: LRLanguage;
|
|
/**
|
|
Rust language support
|
|
*/
|
|
declare function rust(): LanguageSupport;
|
|
|
|
export { rust, rustLanguage };
|