perl-lsp-document-highlight 0.12.2

SRP microcrate for Perl LSP document highlight (symbol occurrence highlighting)
Documentation
  • Coverage
  • 100%
    11 out of 11 items documented0 out of 5 items with examples
  • Size
  • Source code size: 50.73 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.48 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 1m 9s Average build duration of successful builds.
  • all releases: 53s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • EffortlessMetrics/perl-lsp
    9 5 596
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • EffortlessSteven

perl-lsp-document-highlight

Perl document-highlight provider for symbol-occurrence highlighting around the cursor. It answers the question "where else is this thing used in the current document?"

Use this crate when

Use perl-lsp-document-highlight if you need the highlight logic itself. It is lighter-weight than the navigation crates and narrower than the full provider umbrella.

Key exports

  • DocumentHighlightProvider - finds highlights for the active symbol
  • DocumentHighlight / DocumentHighlightKind - serialized highlight payloads

Example

use perl_lsp_document_highlight::DocumentHighlightProvider;

let provider = DocumentHighlightProvider::new();
let highlights = provider.find_highlights(&ast, line, character, source);

Stack role

perl-lsp uses this crate for textDocument/documentHighlight. It sits on top of parsed source and symbol lookup.