aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/reparsing.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/reparsing.rs')
-rw-r--r--crates/ra_syntax/src/reparsing.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/reparsing.rs b/crates/ra_syntax/src/reparsing.rs
index 2f1de6b02..b38985bc8 100644
--- a/crates/ra_syntax/src/reparsing.rs
+++ b/crates/ra_syntax/src/reparsing.rs
@@ -25,7 +25,7 @@ fn reparse_leaf<'node>(
25) -> Option<(&'node SyntaxNode, GreenNode, Vec<SyntaxError>)> { 25) -> Option<(&'node SyntaxNode, GreenNode, Vec<SyntaxError>)> {
26 let node = algo::find_covering_node(node, edit.delete); 26 let node = algo::find_covering_node(node, edit.delete);
27 match node.kind() { 27 match node.kind() {
28 WHITESPACE | COMMENT | IDENT | STRING | RAW_STRING => { 28 WHITESPACE | COMMENT | IDENT | RAW_IDENT | STRING | RAW_STRING => {
29 let text = get_text_after_edit(node, &edit); 29 let text = get_text_after_edit(node, &edit);
30 let tokens = tokenize(&text); 30 let tokens = tokenize(&text);
31 let token = match tokens[..] { 31 let token = match tokens[..] {
@@ -33,7 +33,7 @@ fn reparse_leaf<'node>(
33 _ => return None, 33 _ => return None,
34 }; 34 };
35 35
36 if token.kind == IDENT && is_contextual_kw(&text) { 36 if token.kind.is_ident() && is_contextual_kw(&text) {
37 return None; 37 return None;
38 } 38 }
39 39