summaryrefslogtreecommitdiff
path: root/src/ide/highlight.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-02-02 22:22:16 +0100
committerLaurenz <laurmaedje@gmail.com>2023-02-02 22:33:12 +0100
commit2bb0135d2ad45b2a7228dbb61a04a703b1942798 (patch)
treee10c45114943dac088e53e3a1133523fbfd5e057 /src/ide/highlight.rs
parent255044e04e8b3ad7941a7dadcfd36c07669326aa (diff)
Fix inconsistency between text and idents in math
Diffstat (limited to 'src/ide/highlight.rs')
-rw-r--r--src/ide/highlight.rs1
1 files changed, 1 insertions, 0 deletions
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<Category> {
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);
}