Skip to content

Commit

Permalink
Only mark $$ as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
pfoerster committed Mar 18, 2023
1 parent e803dba commit 4c55f3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/semantic_tokens/math_delimiter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub(super) fn find(context: Context, builder: &mut TokenBuilder) -> Option<()> {
.as_node()?
.descendants_with_tokens()
.filter_map(|elem| elem.into_token())
.filter(|token| token.kind() == latex::DOLLAR)
.filter(|token| token.kind() == latex::DOLLAR && token.text() == "$$")
{
builder.push(Token {
range: token.text_range(),
Expand Down

0 comments on commit 4c55f3c

Please sign in to comment.