summaryrefslogtreecommitdiff
path: root/src/ide
diff options
context:
space:
mode:
Diffstat (limited to 'src/ide')
-rw-r--r--src/ide/highlight.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ide/highlight.rs b/src/ide/highlight.rs
index 5f615d04..75201d93 100644
--- a/src/ide/highlight.rs
+++ b/src/ide/highlight.rs
@@ -192,6 +192,13 @@ pub fn highlight(node: &LinkedNode) -> Option<Category> {
) => Some(Category::Interpolated),
Some(SyntaxKind::FuncCall) => Some(Category::Function),
Some(SyntaxKind::FieldAccess)
+ if node.parent().and_then(|p| p.parent_kind())
+ == Some(SyntaxKind::SetRule)
+ && node.next_sibling().is_none() =>
+ {
+ Some(Category::Function)
+ }
+ Some(SyntaxKind::FieldAccess)
if node
.parent()
.and_then(|p| p.parent())