TextMateLib 1.0
Modern C++ implementation of the TextMate syntax highlighting engine
Loading...
Searching...
No Matches
Core Types and Interfaces

Fundamental types for grammar management, tokenization state, and token representation. More...

Collaboration diagram for Core Types and Interfaces:

Typedefs

using tml::ScopeName = std::string
 Semantic name identifying a scope (e.g., "source.javascript", "comment.line")
 
using tml::ScopePath = std::string
 Full hierarchical scope path (e.g., "source.js keyword.control string.quoted.double")
 
using tml::ScopePattern = std::string
 Regular expression pattern string used in grammar rules.
 
using tml::IncludeString = std::string
 String referencing another grammar to include (scope name or file path)
 
using tml::RegExpString = std::string
 Regular expression pattern as a string.
 
template<typename T >
using tml::OrMask = int
 Generic template for bitwise OR-able flags/masks.
 

Detailed Description

Fundamental types for grammar management, tokenization state, and token representation.

Typedef Documentation

◆ IncludeString

using tml::IncludeString = typedef std::string

String referencing another grammar to include (scope name or file path)

See also
Rule

Definition at line 33 of file types.h.

◆ OrMask

template<typename T >
using tml::OrMask = typedef int

Generic template for bitwise OR-able flags/masks.

Template Parameters
TThe flag enum type (not actually used in current implementation)

Definition at line 42 of file types.h.

◆ RegExpString

using tml::RegExpString = typedef std::string

Regular expression pattern as a string.

See also
Rule

Definition at line 37 of file types.h.

◆ ScopeName

using tml::ScopeName = typedef std::string

Semantic name identifying a scope (e.g., "source.javascript", "comment.line")

See also
ScopePath

Definition at line 20 of file types.h.

◆ ScopePath

using tml::ScopePath = typedef std::string

Full hierarchical scope path (e.g., "source.js keyword.control string.quoted.double")

Space-separated list of scopes representing the nesting hierarchy at a point in the text.

See also
ScopeName

Definition at line 25 of file types.h.

◆ ScopePattern

using tml::ScopePattern = typedef std::string

Regular expression pattern string used in grammar rules.

See also
Rule

Definition at line 29 of file types.h.