class_docstr: Synchronize by starting at a line that matches the given regex pattern.
class_docstr_tok: ["Synchronize","by","starting","at","a","line","that","matches","the","given","regex","pattern","."]
code: def __init__(self, pattern: str) -> None:
      self._compiled_pattern = re.compile(pattern)
  
imports: from __future__ import annotations
  import re
  from abc import ABCMeta, abstractmethod
  from typing import TYPE_CHECKING, Callable, Dict, Generator, Iterable, Tuple
  from prompt_toolkit.document import Document
  from prompt_toolkit.filters import FilterOrBool, to_filter
  from prompt_toolkit.formatted_text.base import StyleAndTextTuples
  from prompt_toolkit.formatted_text.utils import split_lines
  from prompt_toolkit.styles.pygments import pygments_token_to_classname
  from .base import Lexer, SimpleLexer
label_desc: Use image node_id 1 to create a new RegexSync object from inherited base classes: SyntaxSync with example: obj = RegexSync(pattern)