Skip to main content

Crate perl_keywords

Crate perl_keywords 

Source
Expand description

Canonical Perl keyword inventories and allocation-free lookup helpers.

Exports a single KEYWORDS constant containing the full set of Perl reserved words, pragmas, and special tokens. The list is used by the lexer, completion provider, and semantic-token highlighter to distinguish keywords from user-defined identifiers.

Constants§

DAP_COMPLETION_KEYWORDS
Keywords used by DAP debug-console completions.
KEYWORDS
Canonical union of keyword inventories used by the workspace.
LEXER_KEYWORDS
Keywords recognized by perl-lexer for token classification.
LSP_COMPLETION_KEYWORDS
Keywords used by perl-lsp-completion keyword completion.
LSP_RUNTIME_COMPLETION_KEYWORDS
Keywords used by runtime fallback completion in perl-lsp.
PARSER_LSP_KEYWORDS
Keywords used by parser LSP-compat completion/rename paths.
RENAME_KEYWORDS
Keywords reserved for LSP rename validation.

Functions§

is_dap_completion_keyword
Return true when token exists in the DAP completion keyword bucket.
is_keyword
Return true when token exists in the canonical keyword inventory.
is_lexer_keyword
Return true when token is recognized as a lexer keyword.
is_lsp_completion_keyword
Return true when token exists in the LSP completion keyword bucket.
is_lsp_runtime_completion_keyword
Return true when token exists in the runtime completion keyword bucket.
is_parser_lsp_keyword
Return true when token exists in parser LSP-compat keyword bucket.
is_rename_keyword
Return true when token is reserved in rename validation paths.