Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/internal/Whitespace"

Index

Functions

commonPrefix

readyToMatch

  • Prepare to match. Skip whitespace if appropriate. Skip irrelevant content if we have a matcher we're preparing for.

    Parameters

    • is: InputState

      current input state

    • consumeWhiteSpaceBetweenTokens: boolean

      should we skipWhile whitespace

    • Rest ...matchers: MatchingLogic[]

      matchers we want to match. If there are multiple matchers, we calculate the longest common prefix (if known). Undefined array elements are ignored, after the first matcher. If there is a definite prefix, we can skipWhile content.

    Returns Skipped

sharedStart

  • sharedStart(array: string[]): string

Generated using TypeDoc