Skip to main content

Crate perl_lsp_selection_range

Crate perl_lsp_selection_range 

Source
Expand description

textDocument/selectionRange handler - smart selection expansion

This module provides intelligent selection expansion that grows from the narrowest syntactic element outward:

  • Strings: string content -> full string (with quotes) -> expression
  • Hash access: key -> subscript {key} -> full expression $h{key}
  • Function names: name -> signature -> full sub definition
  • General: word -> trimmed line -> statement -> block -> function -> file

Functionsยง

selection_ranges
Generates smart selection ranges for given positions, expanding from the narrowest syntactic element outward to the file scope.