TextMateLib 1.0
Modern C++ implementation of the TextMate syntax highlighting engine
Loading...
Searching...
No Matches
TextMateToken Struct Reference

Represents a single token in tokenized text. More...

#include </home/runner/work/TextMateLib/TextMateLib/packages/tml-cpp/src/c_api.h>

Public Attributes

int32_t startIndex
 Start position in the line (0-based)
 
int32_t endIndex
 End position (exclusive)
 
int32_t scopeDepth
 Number of scopes in the scope hierarchy.
 
char ** scopes
 Array of scope strings (e.g., "keyword.control", "string.quoted.double")
 

Detailed Description

Represents a single token in tokenized text.

A token maps a range of text to a scope hierarchy (list of scopes). The scopes determine styling through theme matching.

Definition at line 58 of file c_api.h.


The documentation for this struct was generated from the following files: