UNPKG

@codemirror/legacy-modes

Version:

Collection of ported legacy language modes for the CodeMirror code editor

36 lines (35 loc) 1.36 kB
import {StreamParser} from "@codemirror/language" export declare function clike(conf: { name: string, statementIndentUnit?: number, dontAlignCalls?: boolean, keywords?: {[word: string]: any}, types?: {[word: string]: any}, builtin?: {[word: string]: any}, blockKeywords?: {[word: string]: any}, atoms?: {[word: string]: any}, hooks?: {[hook: string]: any}, multiLineStrings?: boolean, indentStatements?: boolean, indentSwitch?: boolean, namespaceSeparator?: string, isPunctuationChar?: RegExp, numberStart?: RegExp, number?: RegExp, isOperatorChar?: RegExp, isIdentifierChar?: RegExp, isReservedIdentifier?: (id: string) => boolean }): StreamParser<unknown> export declare const c: StreamParser<unknown> export declare const cpp: StreamParser<unknown> export declare const java: StreamParser<unknown> export declare const csharp: StreamParser<unknown> export declare const scala: StreamParser<unknown> export declare const kotlin: StreamParser<unknown> export declare const shader: StreamParser<unknown> export declare const nesC: StreamParser<unknown> export declare const objectiveC: StreamParser<unknown> export declare const objectiveCpp: StreamParser<unknown> export declare const squirrel: StreamParser<unknown> export declare const ceylon: StreamParser<unknown> export declare const dart: StreamParser<unknown>