TreeSitterHighlightConfiguration class final
Immutable language/query data consumed by TreeSitterHighlighter.
The constructor follows Tree-sitter 0.25.10 exactly: injection, locals, and highlight query sources are concatenated without separators, their pattern boundaries are retained, and combined-injection patterns are moved to a separate query.
Constructors
- TreeSitterHighlightConfiguration({required TreeSitterLanguageTable language, required String languageName, required String highlightsQuery, String injectionsQuery = '', String localsQuery = ''})
-
factory
Properties
- combinedInjectionsQuery → TreeSitterQuery?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
highlightIndices
→ List<
TreeSitterHighlight?> -
no setter
- highlightsPatternIndex → int
-
final
- injectionContentCaptureIndex → int?
-
final
- injectionLanguageCaptureIndex → int?
-
final
- language → TreeSitterLanguageTable
-
final
- languageName → String
-
final
- localDefinitionCaptureIndex → int?
-
final
- localDefinitionValueCaptureIndex → int?
-
final
- localReferenceCaptureIndex → int?
-
final
- localScopeCaptureIndex → int?
-
final
- localsPatternIndex → int
-
final
-
names
→ List<
String> -
All capture names declared by the concatenated query.
no setter
-
nonLocalVariablePatterns
→ List<
bool> -
final
- query → TreeSitterQuery
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
configure(
List< String> recognizedNames) → void - Configures capture-to-highlight matching using upstream's component-set specificity rule.
-
nonconformantCaptureNames(
[Set< String> captureNames = const {}]) → List<String> -
Capture names outside the canonical set, excluding private
_names. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited