Skip to main content

get_pragma_documentation

Function get_pragma_documentation 

Source
pub fn get_pragma_documentation(name: &str) -> Option<PragmaDoc>
Expand description

Get hover documentation for a Perl pragma.

Returns a PragmaDoc for known pragmas used in use <pragma> or no <pragma> statements, or None if the name is not a recognized pragma.

Pragmas covered: strict, warnings, utf8, feature, constant, vars, autodie, encoding, locale, parent, base, lib, Exporter.

Version pragmas (v5.36, 5.036, etc.) are detected by [crate::analysis::pragma::parse_perl_version] separately.