Skip to content

Commit d77175c

Browse files
Sergey ParilinSergey Parilin
Sergey Parilin
authored and
Sergey Parilin
committed
fixed macro for brackets
1 parent 64ab5ab commit d77175c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/ra_parser/src/syntax_kind/generated.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ use self::SyntaxKind::*;
245245
macro_rules! T {
246246
(;) => { $crate::SyntaxKind::SEMI };
247247
(,) => { $crate::SyntaxKind::COMMA };
248-
(() => { $crate::SyntaxKind::L_PAREN };
249-
()) => { $crate::SyntaxKind::R_PAREN };
248+
('(') => { $crate::SyntaxKind::L_PAREN };
249+
(')') => { $crate::SyntaxKind::R_PAREN };
250250
('{') => { $crate::SyntaxKind::L_CURLY };
251251
('}') => { $crate::SyntaxKind::R_CURLY };
252252
('[') => { $crate::SyntaxKind::L_BRACK };

crates/ra_parser/src/syntax_kind/generated.rs.tera

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ use self::SyntaxKind::*;
3636
#[macro_export]
3737
macro_rules! T {
3838
{%- 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 == ')' %}
4040
('{{t.0}}') => { $crate::SyntaxKind::{{t.1}} };
4141
{%- else %}
4242
({{t.0}}) => { $crate::SyntaxKind::{{t.1}} };

0 commit comments

Comments
 (0)