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-lexerfor token classification. - LSP_
COMPLETION_ KEYWORDS - Keywords used by
perl-lsp-completionkeyword 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
truewhentokenexists in the DAP completion keyword bucket. - is_
keyword - Return
truewhentokenexists in the canonical keyword inventory. - is_
lexer_ keyword - Return
truewhentokenis recognized as a lexer keyword. - is_
lsp_ completion_ keyword - Return
truewhentokenexists in the LSP completion keyword bucket. - is_
lsp_ runtime_ completion_ keyword - Return
truewhentokenexists in the runtime completion keyword bucket. - is_
parser_ lsp_ keyword - Return
truewhentokenexists in parser LSP-compat keyword bucket. - is_
rename_ keyword - Return
truewhentokenis reserved in rename validation paths.