From 2bb0135d2ad45b2a7228dbb61a04a703b1942798 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 2 Feb 2023 22:22:16 +0100 Subject: Fix inconsistency between text and idents in math --- src/ide/highlight.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ide') diff --git a/src/ide/highlight.rs b/src/ide/highlight.rs index e00007f3..0ce6bf8a 100644 --- a/src/ide/highlight.rs +++ b/src/ide/highlight.rs @@ -260,6 +260,7 @@ fn highlight_ident(node: &LinkedNode) -> Option { if let Some(next) = &next_leaf { if node.range().end == next.offset() && matches!(next.kind(), SyntaxKind::LeftParen | SyntaxKind::LeftBracket) + && matches!(next.parent_kind(), Some(SyntaxKind::Args | SyntaxKind::Params)) { return Some(Category::Function); } -- cgit v1.2.3