Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

function libtmux

_tokenize_tmux_string

Tokenize a tmux command string per cmd-parse.y with source spans.

Source and package
Qualified name
libtmux._internal.log_context._tokenize_tmux_string
Module
libtmux._internal.log_context
Package
libtmux
Source
src/libtmux/_internal/log_context.py
_tokenize_tmux_string (raw: str) → list[_LexToken] | None

Description

Handles '...', "...", \x escapes, ; and \n statement separators (with or without surrounding spaces), and { / } blocks. Returns None on unterminated quotes or trailing backslashes.

Parameters

Recorded calls

source calls
No call edges in the Python model.

The Python reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls libtmux._internal.log_context._tokenize_tmux_string.

Esc
Search in

Type to search.

Reference previewOpen reference