# ruby: Add a new injection for regular expressions \(\#12533\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 356fcec337a71adf13955764a33ffa8f2298c422

Requested commit: 356fcec337a71adf13955764a33ffa8f2298c422

Commit: 356fcec337a71adf13955764a33ffa8f2298c422

Tree: 64d7afa59227d74fea0db74c0f69170408c2c0cb

Author: Vitaly Slobodin

Committer: GitHub

## Message

```
ruby: Add a new injection for regular expressions (#12533)

# Summary

Hello. This pull request adds a new injection to `injections.scm` for
Ruby language to highlight regular expressions. Thanks.

## Before

![CleanShot 2024-05-31 at 16 25
46@2x](https://github.com/zed-industries/zed/assets/1894248/8b88718e-8f13-4d61-b6f9-6a25b3ebcc57)

## After


![after](https://github.com/zed-industries/zed/assets/1894248/e11f6ec3-45c6-40f8-b6d9-ddbfd16a3331)

Release Notes:

- N/A

Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
```

## Parents

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

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