# Add new injections for Go \(\#37605\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 63586ff2e452832e3e1250d1e9cf3938d377d832

Requested commit: 63586ff2e452832e3e1250d1e9cf3938d377d832

Commit: 63586ff2e452832e3e1250d1e9cf3938d377d832

Tree: c8780a80bd2306f50e87e12215ed832812bfe86d

Author: Kaan Kuscu

Committer: GitHub

## Message

````
Add new injections for Go (#37605)

support for injecting sql, json, yaml, xml, html, css, js, lua and csv
value

if you use `/* lang */` before string literals, highlights them

**Example:**

```go
const sqlQuery = /* sql */ "SELECT * FROM users;" // highlights as SQL code
```

<img width="629" height="46" alt="Screenshot 2025-09-05 at 06 17 49"
src="https://github.com/user-attachments/assets/80f404d8-0a47-428d-bdb5-09fbee502cfe"
/>


Closes #ISSUE

Release Notes:

- Go: Added support for injecting sql, json, yaml, xml, html, css, js, lua and csv language highlights into string literals, when they are prefixed with `/* lang */`

**Example:**

```go
const sqlQuery = /* sql */ "SELECT * FROM users;" // Will be highlighted as SQL code
```
````

## Parents

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

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