diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-05-15 13:45:58 +0100 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-05-15 13:45:58 +0100 |
commit | ec7d2f64ade9ffa35a64e82ac53e65ad5cbe9efd (patch) | |
tree | b8693ce808a9ca2e7eaae5013644a1082fc7bb17 /crates/ra_parser/src/syntax_kind | |
parent | 64ab5ab10d32e7e8ec085af818d3d94211aea39b (diff) | |
parent | 993abedd77cf23ce2281b6c8e60cab49ab4fa97e (diff) |
Merge #1278
1278: Apply T! macro where posible r=matklad a=pasa
apply T! macro implemented in #1248
Co-authored-by: Sergey Parilin <[email protected]>
Diffstat (limited to 'crates/ra_parser/src/syntax_kind')
-rw-r--r-- | crates/ra_parser/src/syntax_kind/generated.rs | 4 | ||||
-rw-r--r-- | crates/ra_parser/src/syntax_kind/generated.rs.tera | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_parser/src/syntax_kind/generated.rs b/crates/ra_parser/src/syntax_kind/generated.rs index 1a08cc6eb..d7926bd91 100644 --- a/crates/ra_parser/src/syntax_kind/generated.rs +++ b/crates/ra_parser/src/syntax_kind/generated.rs | |||
@@ -245,8 +245,8 @@ use self::SyntaxKind::*; | |||
245 | macro_rules! T { | 245 | macro_rules! T { |
246 | (;) => { $crate::SyntaxKind::SEMI }; | 246 | (;) => { $crate::SyntaxKind::SEMI }; |
247 | (,) => { $crate::SyntaxKind::COMMA }; | 247 | (,) => { $crate::SyntaxKind::COMMA }; |
248 | (() => { $crate::SyntaxKind::L_PAREN }; | 248 | ('(') => { $crate::SyntaxKind::L_PAREN }; |
249 | ()) => { $crate::SyntaxKind::R_PAREN }; | 249 | (')') => { $crate::SyntaxKind::R_PAREN }; |
250 | ('{') => { $crate::SyntaxKind::L_CURLY }; | 250 | ('{') => { $crate::SyntaxKind::L_CURLY }; |
251 | ('}') => { $crate::SyntaxKind::R_CURLY }; | 251 | ('}') => { $crate::SyntaxKind::R_CURLY }; |
252 | ('[') => { $crate::SyntaxKind::L_BRACK }; | 252 | ('[') => { $crate::SyntaxKind::L_BRACK }; |
diff --git a/crates/ra_parser/src/syntax_kind/generated.rs.tera b/crates/ra_parser/src/syntax_kind/generated.rs.tera index ccb8ca4ba..f5abbec4b 100644 --- a/crates/ra_parser/src/syntax_kind/generated.rs.tera +++ b/crates/ra_parser/src/syntax_kind/generated.rs.tera | |||
@@ -36,7 +36,7 @@ use self::SyntaxKind::*; | |||
36 | #[macro_export] | 36 | #[macro_export] |
37 | macro_rules! T { | 37 | macro_rules! T { |
38 | {%- for t in concat(a=single_byte_tokens, b=multi_byte_tokens) %} | 38 | {%- for t in concat(a=single_byte_tokens, b=multi_byte_tokens) %} |
39 | {%- if t.0 == '{' or t.0 == '}' or t.0 == '[' or t.0 == ']' %} | 39 | {%- if t.0 == '{' or t.0 == '}' or t.0 == '[' or t.0 == ']' or t.0 == '(' or t.0 == ')' %} |
40 | ('{{t.0}}') => { $crate::SyntaxKind::{{t.1}} }; | 40 | ('{{t.0}}') => { $crate::SyntaxKind::{{t.1}} }; |
41 | {%- else %} | 41 | {%- else %} |
42 | ({{t.0}}) => { $crate::SyntaxKind::{{t.1}} }; | 42 | ({{t.0}}) => { $crate::SyntaxKind::{{t.1}} }; |