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

Result from tokenizing a single line with encoded tokens. More...

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

Public Attributes

uint32_t * tokens
 Array of encoded tokens.
 
int32_t tokenCount
 Number of tokens in the array.
 
TextMateStateStack ruleStack
 State at end of line (pass to next line's tokenization)
 
int32_t stoppedEarly
 Non-zero if tokenization stopped before end (time limit hit)
 

Detailed Description

Result from tokenizing a single line with encoded tokens.

Alternative to TextMateTokenizeResult that uses compact 32-bit token encoding rather than decoded scopes. Used by textmate_tokenize_line2() for performance.

Memory Ownership: Caller must free this structure using textmate_free_tokenize_result2().

Definition at line 86 of file c_api.h.


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