# Fix syntax highlighting conflicts with certain glsl types \(\#32022\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b7c2d4876c24af406131e6dbbc0fe844462f1d53

Requested commit: b7c2d4876c24af406131e6dbbc0fe844462f1d53

Commit: b7c2d4876c24af406131e6dbbc0fe844462f1d53

Tree: dba2ca048f32b284dc170b3f4eab7e4d9ee030be

Author: not a cow

Committer: GitHub

## Message

```
Fix syntax highlighting conflicts with certain glsl types (#32022)

added first line pattern for glsl because some extensions conflict with
others like fragment shaders (.fs) would be highlighted by f#

<details>

| no f# extension no fix | f# extension no fix | f# extension with fix |
|--------|--------|--------|
|
![zed_TW1mkwXSMS](https://github.com/user-attachments/assets/d3d64b44-ced5-41a8-86b1-36cafc92f7e4)
|
![zed_T5ewceKmHo](https://github.com/user-attachments/assets/08ced11d-c2c6-4b73-964d-768e8ba763da)
|
![zed_9Rhkc5flQZ](https://github.com/user-attachments/assets/9e949d00-4e69-4687-9863-e0ab38b8b3df)
|

</details>

Release Notes:

- glsl: Added a workaround for an issue where fragment shaders with the `.fs` file extension would be misidentified as F#. Now, adding `#version {version}` to the first line of your fragment shader will ensure it is always recognized as glsl
```

## Parents

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

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