mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-07 20:39:04 +03:00
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>
This commit is contained in:
parent
08123a270a
commit
356fcec337
@ -2,3 +2,7 @@
|
||||
(heredoc_content) @content
|
||||
(heredoc_end) @language
|
||||
(#downcase! @language))
|
||||
|
||||
((regex
|
||||
(string_content) @content)
|
||||
(#set! "language" "regex"))
|
||||
|
Loading…
Reference in New Issue
Block a user