summaryrefslogtreecommitdiff
path: root/src/syntax/kind.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax/kind.rs')
-rw-r--r--src/syntax/kind.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/syntax/kind.rs b/src/syntax/kind.rs
index d35901b0..0717e16c 100644
--- a/src/syntax/kind.rs
+++ b/src/syntax/kind.rs
@@ -244,6 +244,8 @@ pub enum SyntaxKind {
FuncReturn,
/// A destructuring pattern: `(x, _, ..y)`.
Destructuring,
+ /// A destructuring assignment expression: `(x, y) = (1, 2)`.
+ DestructAssignment,
/// A line comment: `// ...`.
LineComment,
@@ -430,6 +432,7 @@ impl SyntaxKind {
Self::LoopContinue => "`continue` expression",
Self::FuncReturn => "`return` expression",
Self::Destructuring => "destructuring pattern",
+ Self::DestructAssignment => "destructuring assignment expression",
Self::LineComment => "line comment",
Self::BlockComment => "block comment",
Self::Error => "syntax error",