From c4b32d15340e1dae74d3eaa701ef92ae0f9e295e Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Fri, 1 May 2020 23:18:00 +0300 Subject: Fix the extension method --- crates/ra_syntax/src/ast/extensions.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_syntax') diff --git a/crates/ra_syntax/src/ast/extensions.rs b/crates/ra_syntax/src/ast/extensions.rs index 528c873e0..98c38d009 100644 --- a/crates/ra_syntax/src/ast/extensions.rs +++ b/crates/ra_syntax/src/ast/extensions.rs @@ -467,7 +467,7 @@ impl ast::TokenTree { pub fn right_delimiter_token(&self) -> Option { self.syntax().last_child_or_token()?.into_token().filter(|it| match it.kind() { - T!['{'] | T!['('] | T!['['] => true, + T!['}'] | T![')'] | T![']'] => true, _ => false, }) } -- cgit v1.2.3