Skip to content

Commit 4c55f3c

Browse files
committed
Only mark $$ as deprecated
1 parent e803dba commit 4c55f3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/semantic_tokens/math_delimiter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub(super) fn find(context: Context, builder: &mut TokenBuilder) -> Option<()> {
1111
.as_node()?
1212
.descendants_with_tokens()
1313
.filter_map(|elem| elem.into_token())
14-
.filter(|token| token.kind() == latex::DOLLAR)
14+
.filter(|token| token.kind() == latex::DOLLAR && token.text() == "$$")
1515
{
1616
builder.push(Token {
1717
range: token.text_range(),

0 commit comments

Comments
 (0)