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 a800236ebf..80c3375304 100644 --- a/support/texlab/src/syntax/latex/cst.rs +++ b/support/texlab/src/syntax/latex/cst.rs @@ -33,7 +33,7 @@ macro_rules! cst_node { let start = full_range.start(); let mut token = self.syntax().last_token(); while let Some(current) = token { - if !matches!(current.kind(), WHITESPACE | COMMENT) { + if !matches!(current.kind(), LINE_BREAK | WHITESPACE | COMMENT) { return TextRange::new(start, current.text_range().end()); } token = current.prev_token(); |