groovy-beautify
Version:
A simple beautifier which allows formatting and indenting Groovy scripts
21 lines (20 loc) • 659 B
TypeScript
import { CodeBlock } from "./types";
export declare type MatchExpression = RegExp | string | ((currentBlock: CodeBlock, currentText: string) => string | undefined);
export default class ParseRule {
name: string;
exclusive: boolean;
wholeword: boolean;
start: MatchExpression | MatchExpression[];
skip?: MatchExpression | MatchExpression[];
end?: MatchExpression | MatchExpression[];
constructor(
name: string,
options: {
exclusive?: boolean;
wholeword?: boolean;
start: MatchExpression | MatchExpression[];
end?: MatchExpression | MatchExpression[];
skip?: MatchExpression | MatchExpression[];
}
);
}