typst_syntax

Function highlight

source
pub fn highlight(node: &LinkedNode<'_>) -> Option<Tag>
Expand description

Determine the highlight tag of a linked syntax node.

Returns None if the node should not be highlighted.