# Add support for Elm and GLSL \(\#2782\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c32fd576438c7e7f81c6cd8ef0276268d0428c4e

Requested commit: c32fd576438c7e7f81c6cd8ef0276268d0428c4e

Commit: c32fd576438c7e7f81c6cd8ef0276268d0428c4e

Tree: badc00d1986649363a0123a59ea5024552fa6507

Author: Mikayla Maki

Committer: GitHub

## Message

```
Add support for Elm and GLSL (#2782)

This adds tree-sitter grammars for both Elm and GLSL, with injections
for GLSL embedded within Elm. It also adds an `outline.scm` for Elm,
though limitations in the tree-sitter grammar meant that I wasn't able
to get it looking exactly how I'd have liked.

In particular, it wasn't clear how to nicely annotate functions in the
outline as being functions, or how to prevent the fields of a record
declaration from being increasingly indented.


![image](https://github.com/zed-industries/zed/assets/285821/544bc00b-3bfc-4ec7-be9d-764b9f0292ab)

![image](https://github.com/zed-industries/zed/assets/285821/74e57e95-bf87-4989-ae29-a2f625141bcf)

![image](https://github.com/zed-industries/zed/assets/285821/9e283c78-66d5-4c15-9827-1b5b446cdc37)

fixes https://github.com/zed-industries/community/issues/598

Release Notes:
- Added syntax highlighting for the Elm and GLSL languages
```

## Parents

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

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

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