@sourceacademy/autocomplete
    Preparing search index...

    Interface KeywordMapperArgs

    The KeywordMapperArgs interface defines the structure of the arguments for a keyword mapper, which is a function that maps keywords to token types based on a provided mapping.
    It directly corresponds to the createKeywordMapper function in Ace Editor, which is used to create a keyword mapper for syntax highlighting, i.e. this.createKeywordMapper(map, defaultToken).

    interface KeywordMapperArgs {
        defaultToken: string;
        map: Record<string, string>;
    }
    Index

    Properties

    Properties

    defaultToken: string
    map: Record<string, string>