diff options
Diffstat (limited to 'support/texlab/src/syntax/latex/cst.rs')
-rw-r--r-- | support/texlab/src/syntax/latex/cst.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/texlab/src/syntax/latex/cst.rs b/support/texlab/src/syntax/latex/cst.rs index 06c187213d..a83246571d 100644 --- a/support/texlab/src/syntax/latex/cst.rs +++ b/support/texlab/src/syntax/latex/cst.rs @@ -233,7 +233,7 @@ impl Key { self.syntax() .children_with_tokens() .filter_map(|node| node.into_token()) - .filter(|node| node.kind() == WORD) + .filter(|node| !matches!(node.kind(), WHITESPACE | LINE_BREAK | COMMENT)) } } |