diff options
Diffstat (limited to 'src/syntax/kind.rs')
| -rw-r--r-- | src/syntax/kind.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/syntax/kind.rs b/src/syntax/kind.rs index b0d934d1..fcde2bb4 100644 --- a/src/syntax/kind.rs +++ b/src/syntax/kind.rs @@ -244,6 +244,8 @@ pub enum SyntaxKind { LoopContinue, /// A return from a function: `return`, `return x + 1`. FuncReturn, + /// A destructuring pattern: `x`, `(x, _, ..y)`. + Pattern, /// A line comment: `// ...`. LineComment, @@ -430,6 +432,7 @@ impl SyntaxKind { Self::LoopBreak => "`break` expression", Self::LoopContinue => "`continue` expression", Self::FuncReturn => "`return` expression", + Self::Pattern => "destructuring pattern", Self::LineComment => "line comment", Self::BlockComment => "block comment", Self::Error => "syntax error", |
