summaryrefslogtreecommitdiff
path: root/src/ide
diff options
context:
space:
mode:
Diffstat (limited to 'src/ide')
-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);
}