interface SyntaxMode {
    HighlightRules: (new (config?) => HighlightRules);
    blockComment?: {
        end: string;
        start: string;
    };
    completionKeywords: string[];
    foldingRules?: FoldMode;
    lineCommentStart?: string;
    nonTokenRe?: RegExp;
    path?: string;
    tokenRe?: RegExp;
    transformAction: BehaviorAction;
    autoOutdent(state, doc, row): void;
    checkOutdent(state, line, input): boolean;
    createModeDelegates(mapping): void;
    createWorker(session): any;
    getCompletions(state, session, pos, prefix): Completion[];
    getKeywords(append?): (string | RegExp)[];
    getNextLineIndent(state, line, tab): string;
    getTokenizer(): Tokenizer;
    toggleBlockComment(state, session, range, cursor): void;
    toggleCommentLines(state, session, startRow, endRow): void;
}

Properties

HighlightRules: (new (config?) => HighlightRules)

Type declaration

blockComment?: {
    end: string;
    start: string;
}

characters that indicate the start and end of a block comment

Type declaration

  • end: string
  • start: string
completionKeywords: string[]
foldingRules?: FoldMode
lineCommentStart?: string

characters that indicate the start of a line comment

nonTokenRe?: RegExp
path?: string
tokenRe?: RegExp
transformAction: BehaviorAction

Methods

  • Parameters

    Returns void

  • Parameters

    • state: string | string[]
    • line: string
    • input: string

    Returns boolean

  • Parameters

    • mapping: {
          [key: string]: string;
      }
      • [key: string]: string

    Returns void

  • Parameters

    Returns Completion[]

  • Parameters

    • Optional append: boolean

    Returns (string | RegExp)[]

  • Parameters

    • state: string | string[]
    • line: string
    • tab: string

    Returns string

  • Returns Tokenizer

  • Parameters

    • state: string | string[]
    • session: EditSession
    • startRow: number
    • endRow: number

    Returns void

Generated using TypeDoc