diff options
author | Florian Diebold <[email protected]> | 2019-02-09 18:07:35 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2019-02-09 20:37:30 +0000 |
commit | f1afc933530a87bd0cc7b25726c9a7fff3f3e007 (patch) | |
tree | cfa9a55a6d9df93129502be655d6c26dee1bc5c1 /crates/ra_syntax/src/syntax_kinds | |
parent | 7ebde241c00cd9eb816b1aa7cb212a946afb0d3e (diff) |
Fix handling of literal patterns
Wrap them in a LiteralPat node so they can be distinguished from literal
expressions.
Diffstat (limited to 'crates/ra_syntax/src/syntax_kinds')
-rw-r--r-- | crates/ra_syntax/src/syntax_kinds/generated.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/syntax_kinds/generated.rs b/crates/ra_syntax/src/syntax_kinds/generated.rs index fea513458..266b95bbb 100644 --- a/crates/ra_syntax/src/syntax_kinds/generated.rs +++ b/crates/ra_syntax/src/syntax_kinds/generated.rs | |||
@@ -157,6 +157,7 @@ pub enum SyntaxKind { | |||
157 | TUPLE_PAT, | 157 | TUPLE_PAT, |
158 | SLICE_PAT, | 158 | SLICE_PAT, |
159 | RANGE_PAT, | 159 | RANGE_PAT, |
160 | LITERAL_PAT, | ||
160 | TUPLE_EXPR, | 161 | TUPLE_EXPR, |
161 | ARRAY_EXPR, | 162 | ARRAY_EXPR, |
162 | PAREN_EXPR, | 163 | PAREN_EXPR, |
@@ -493,6 +494,7 @@ impl SyntaxKind { | |||
493 | TUPLE_PAT => &SyntaxInfo { name: "TUPLE_PAT" }, | 494 | TUPLE_PAT => &SyntaxInfo { name: "TUPLE_PAT" }, |
494 | SLICE_PAT => &SyntaxInfo { name: "SLICE_PAT" }, | 495 | SLICE_PAT => &SyntaxInfo { name: "SLICE_PAT" }, |
495 | RANGE_PAT => &SyntaxInfo { name: "RANGE_PAT" }, | 496 | RANGE_PAT => &SyntaxInfo { name: "RANGE_PAT" }, |
497 | LITERAL_PAT => &SyntaxInfo { name: "LITERAL_PAT" }, | ||
496 | TUPLE_EXPR => &SyntaxInfo { name: "TUPLE_EXPR" }, | 498 | TUPLE_EXPR => &SyntaxInfo { name: "TUPLE_EXPR" }, |
497 | ARRAY_EXPR => &SyntaxInfo { name: "ARRAY_EXPR" }, | 499 | ARRAY_EXPR => &SyntaxInfo { name: "ARRAY_EXPR" }, |
498 | PAREN_EXPR => &SyntaxInfo { name: "PAREN_EXPR" }, | 500 | PAREN_EXPR => &SyntaxInfo { name: "PAREN_EXPR" }, |