Expand description
Cursor-oriented symbol extraction for Perl source text.
This microcrate focuses on a single responsibility: extracting symbol names and ranges around a cursor position.
Enums§
- Cursor
Symbol Kind - Symbol sigil categories used for cursor extraction.
Functions§
- byte_
offset_ utf16 - Convert a UTF-16 column index to a byte offset for a single line.
- extract_
symbol_ from_ source - Extract a symbol and its kind from
sourceatposition. - get_
symbol_ range_ at_ position - Get symbol range at
position, including a leading sigil when present. - is_
modchar - Return true when
byteis a module/name character ([A-Za-z0-9_:]). - is_
word_ boundary - Check if a match at
pos..pos+word_lenis bounded by non-word chars. - token_
under_ cursor - Extract the module/symbol token under the cursor (UTF-16 aware).