# Improve syntax highlighting and outline view for Elixir \(\#2582\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/0d90c6d02ef5a6da0bab821a4bdedc710fd5c0ff)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 0d90c6d02ef5a6da0bab821a4bdedc710fd5c0ff

Requested commit: 0d90c6d02ef5a6da0bab821a4bdedc710fd5c0ff

Commit: 0d90c6d02ef5a6da0bab821a4bdedc710fd5c0ff

Tree: 708bc64a5d93f3b129429c7fa53af5b5e4992e86

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Improve syntax highlighting and outline view for Elixir (#2582)

Fixes
https://linear.app/zed-industries/issue/Z-2208/outline-view-doesnt-differentiate-between-overloaded-functions
Fixes
https://linear.app/zed-industries/issue/Z-2205/elixir-syntax-highlighting-not-working-properly-for-doc-attributes-and

This PR improves syntax highlighting and outline view in Elixir. It's
common to overload elixir functions, with many different versions of the
function for different patterns of parameters, so I updated the outline
view to show functions' parameters in Elixir. But if we showed functions
the same way in the *breadcrumbs*, it would take up too much space.

So I added a new capture in languages' `outline` queries called
`@context.extra`, which is included in the outline view, but not in
breadcrumbs.

Release Notes:

- Improved syntax highlighting of doc attributes and special macros in
Elixir
- Updated the outline view in Elixir to display function parameters, to
allow differentiating between function overloads.
```

## Parents

- [cc63d3d048e37da73bdccbdbce3a7583703ced50](https://git.cafe/gitcafe/zed/commit/cc63d3d048e37da73bdccbdbce3a7583703ced50?format=markdown)

- [4b9a3c66e6e51716d3b16912ad6a60c9724674e2](https://git.cafe/gitcafe/zed/commit/4b9a3c66e6e51716d3b16912ad6a60c9724674e2?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/0d90c6d02ef5a6da0bab821a4bdedc710fd5c0ff?format=markdown)
