diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-02-02 22:22:16 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-02-02 22:33:12 +0100 |
| commit | 2bb0135d2ad45b2a7228dbb61a04a703b1942798 (patch) | |
| tree | e10c45114943dac088e53e3a1133523fbfd5e057 /src/ide/highlight.rs | |
| parent | 255044e04e8b3ad7941a7dadcfd36c07669326aa (diff) | |
Fix inconsistency between text and idents in math
Diffstat (limited to 'src/ide/highlight.rs')
| -rw-r--r-- | src/ide/highlight.rs | 1 |
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); } |
