# libtmux.formats._skip

- **Module:** libtmux.formats
- **Package:** libtmux
- **Language:** Python
- **Kind:** function
- **Source:** https://github.com/tmux-python/libtmux/blob/d2a146c9a045437b92013d65943b7ac70013fa24/src/libtmux/formats.py#L54
- **Page:** https://libtmux.org/en/py/latest/reference/libtmux-formats-_skip/

```
libtmux.formats._skip(
    template: str, start: int, end: str
) -> int | None
```

Return the index of the first *end* character outside ``#{...}``.

Mirrors tmux's ``format_skip``: ``#{`` opens a level, ``}`` closes one,
and ``#,``, ``##``, ``#{``, ``#}`` and ``#:`` are skipped as pairs.

## Parameters

- `template` (`str`)
- `start` (`int`)
- `end` (`str`)

## Examples

```python
>>> _skip("#{?a,#{b},c}x", 0, "}")
11
>>> _skip("#{?a,#}", 0, "}") is None
True
```
