From d77175ce28da45960a89811f273b6c614d7a9413 Mon Sep 17 00:00:00 2001 From: Sergey Parilin Date: Wed, 15 May 2019 12:34:48 +0300 Subject: fixed macro for brackets --- crates/ra_parser/src/syntax_kind/generated.rs | 4 ++-- crates/ra_parser/src/syntax_kind/generated.rs.tera | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_parser') 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::*; macro_rules! T { (;) => { $crate::SyntaxKind::SEMI }; (,) => { $crate::SyntaxKind::COMMA }; - (() => { $crate::SyntaxKind::L_PAREN }; - ()) => { $crate::SyntaxKind::R_PAREN }; + ('(') => { $crate::SyntaxKind::L_PAREN }; + (')') => { $crate::SyntaxKind::R_PAREN }; ('{') => { $crate::SyntaxKind::L_CURLY }; ('}') => { $crate::SyntaxKind::R_CURLY }; ('[') => { $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::*; #[macro_export] macro_rules! T { {%- for t in concat(a=single_byte_tokens, b=multi_byte_tokens) %} - {%- if t.0 == '{' or t.0 == '}' or t.0 == '[' or t.0 == ']' %} + {%- if t.0 == '{' or t.0 == '}' or t.0 == '[' or t.0 == ']' or t.0 == '(' or t.0 == ')' %} ('{{t.0}}') => { $crate::SyntaxKind::{{t.1}} }; {%- else %} ({{t.0}}) => { $crate::SyntaxKind::{{t.1}} }; -- cgit v1.2.3