bracketMatchingHandle top-level property

NodeProp<SyntaxNode? Function(SyntaxNode node)> bracketMatchingHandle
final

When larger syntax nodes, such as HTML tags, are marked as opening/closing, it can be a bit messy to treat the whole node as a matchable bracket.

This node prop allows you to define, for such a node, a 'handle'—the part of the node that is highlighted, and that the cursor must be on to activate highlighting in the first place.

Implementation

final NodeProp<SyntaxNode? Function(SyntaxNode node)> bracketMatchingHandle =
    NodeProp<SyntaxNode? Function(SyntaxNode node)>(
  deserialize: (_) => throw UnsupportedError('Cannot deserialize bracketMatchingHandle'),
);