regex-explain - v1.6.0
    Preparing search index...

    Class RegexFinder

    Finds regexes in documents of the languages in LANGUAGES.

    Index
    • Constructs a new RegexFinder.

      Parameters

      • wasmDir: string

        Directory or URL holding tree-sitter.wasm and the tree-sitter-<grammar>.wasm files, such as the wasm directory of @vscode/tree-sitter-wasm.

      Returns RegexFinder

    • Checks whether regexes can be found in a language.

      Parameters

      • languageId: string

        A VS Code language ID.

      Returns boolean

      Whether the language has a LanguageSpec.

    • Lists the regexes in source text, in order.

      Parameters

      • source: string

        The source text.

      • languageId: string

        The VS Code language ID of the source.

      Returns Promise<LocatedRegex[]>

      The regexes found; none for unsupported languages or for sources longer than MAX_SCAN_LENGTH. Patterns built at run time, such as strings with interpolations, are skipped.