languages: Highlight case statements and special variables for Shell Scripts (#48200)
Part of https://github.com/zed-industries/zed/issues/9461. Similar PRs: - https://github.com/zed-industries/zed/pull/46722 - https://github.com/zed-industries/zed/pull/39683 - https://github.com/zed-industries/zed/pull/39801 ## Release Notes: - Allowed highlighting for case statement items for users and theme authors via the `string.regex` syntax property. - Allowed highlighting for special variables via `variable.special` ## Screenshots | **Before** | **After** | |:--:|:--:| | <img width="727" height="922" alt="image" src="https://github.com/user-attachments/assets/15126713-1f02-40f2-8115-0deb5476aebd" /> | <img width="742" height="900" alt="image" src="https://github.com/user-attachments/assets/e178934e-5735-448d-abb2-2d2ad08a9c8f" /> |
This commit is contained in:
1 parent
ce5ee82153
commit
48350d047d
1 file changed
+3
@@ -110,3 +110,6 @@
|
||||
(command (_) @constant)
|
||||
(#match? @constant "^-")
|
||||
)
|
||||
|
||||
(case_item value: (_) @string.regex)
|
||||
(special_variable_name) @variable.special
|
||||
Reference in new issue
Block a user