Expand description
Syntax and token kinds for the LeekScript grammar.
Uses an enum with sipha::SyntaxKinds so discriminants are 0, 1, 2, … automatically.
Enums§
Constants§
- FIELD_
RHS - Field id for the “rhs” named child (right-hand side of binary expressions in the expression grammar).
Use with
sipha::red::SyntaxNode::field_by_idon aNodeBinaryExprto get the right operand. - KEYWORDS
LeekScriptkeywords (for completion and tooling). Sorted for display.- SYNTHETIC_
ROOT - sipha uses this kind for a wrapper root when the grammar produces a single root node.
Functions§
- is_
valid_ identifier - Returns true if
nameis a validLeekScriptidentifier (non-empty, starts with letter or underscore, rest alphanumeric or underscore). Used e.g. for rename validation in LSP. - kind_
name - Human-readable name for a syntax kind (for diagnostics and debugging).