# libtmux._internal.log_context._find_matching_rbrace

- **Module:** libtmux._internal.log_context
- **Package:** libtmux
- **Language:** Python
- **Kind:** function
- **Source:** https://github.com/tmux-python/libtmux/blob/efdbb5637666b166358772ecc737b3807beab21e/src/libtmux/_internal/log_context.py#L150
- **Page:** https://libtmux.org/en/py/latest/reference/libtmux-_internal-log_context-_find_matching_rbrace/

```
libtmux._internal.log_context._find_matching_rbrace(
    tokens: Sequence[str],
    open_index: int,
    allow_attached_semicolon: bool = False,
) -> int | None
```

Return the index of the ``}`` closing ``tokens[open_index] == "{"``.

## Parameters

- `tokens` (`Sequence[str]`)
- `open_index` (`int`)
- `allow_attached_semicolon` (`bool`)
  Default: `False`.
