Skip to content

Qt-TreeSitterHighlighter

A tree-sitter syntax highlighter for Qt.

Types

Name Description
TreeSitterHighlighter TreeSitterHighlighter is a syntax highlighter for QTextDocument based on tree-sitter.

Type Aliases

Name Description
BlockRange Represents a range(inclusive) of QTextBlocks in a document.
FormatMap A mapping of capture names to their syntax highlighting formats.

Type Alias Details

BlockRange

typedef std::pair<int, int> BlockRange

Represents a range(inclusive) of QTextBlocks in a document.

FormatMap

typedef std::map<std::string, QTextCharFormat> FormatMap

A mapping of capture names to their syntax highlighting formats.