This class takes a set of highlighting rules, and creates a tokenizer out of them. For more information, see the wiki on extending highlighters.

Hierarchy (view full)

Constructors

Properties

matchMappings: {}

Type declaration

    regExps: {}

    Type declaration

      reportError: ((msg, data) => void)

      Type declaration

        • (msg, data): void
        • Parameters

          • msg: any
          • data: any

          Returns void

      splitRegex: RegExp
      states: any

      Methods

      • Parameters

        • str: string

        Returns string | Token[]

      • Parameters

        • src: string
        • flag: string

        Returns RegExp

      • Returns an object containing two properties: tokens, which contains all the tokens; and state, the current state.

        Parameters

        • line: string
        • startState: string | string[]

        Returns {
            state: string | string[];
            tokens: Token[];
        }

        • state: string | string[]
        • tokens: Token[]
      • Parameters

        • src: string

        Returns string

      Generated using TypeDoc