(doc document.ComposeDocument, position protocol.Position)
| 271 | } |
| 272 | |
| 273 | func DocumentHighlight(doc document.ComposeDocument, position protocol.Position) ([]protocol.DocumentHighlight, error) { |
| 274 | _, references := DocumentHighlights(doc, position) |
| 275 | if len(references.documentHighlights) == 0 { |
| 276 | return nil, nil |
| 277 | } |
| 278 | return references.documentHighlights, nil |
| 279 | } |
| 280 | |
| 281 | func convertTopLevelNode(node *ast.MappingValueNode) (*ast.StringNode, *ast.MappingNode) { |
| 282 | if s, ok := resolveAnchor(node.Key).(*ast.StringNode); ok { |