ZIm/crates/zed
Marshall Bowers bde509fa74
Expose Python docstrings for syntax highlighting (#7587)
This PR extends our Tree-sitter highlights for Python to allow
highlighting docstrings differently from other strings.

Docstrings in Python will now use `string.doc` instead of just `string`,
which will allow for them to be styled independently of other strings.
If no `string.doc` is present in the theme, then it will fall back to
using the `string` styles.

<img width="272" alt="Screenshot 2024-02-08 at 1 52 21 PM"
src="https://github.com/zed-industries/zed/assets/1486634/034cffa0-91c0-4924-8ccc-3a385cf31126">

This is slightly different than the approach I took in #7585 in that we
are still treating docstrings as strings by default (which appears to be
the more common behavior), but allowing theme authors to hook in and
style them separately, if desired.

Release Notes:

- Added ability add custom styles for Python docstrings using
`string.doc`
([#7346](https://github.com/zed-industries/zed/issues/7346)).
2024-02-08 14:20:21 -05:00
..
contents Fix bundle script 2023-11-17 17:44:41 -08:00
resources Re-enable language plugin functionality with some fixes (#7105) 2024-01-30 19:59:13 -08:00
src Expose Python docstrings for syntax highlighting (#7587) 2024-02-08 14:20:21 -05:00
build.rs linux: disable mac-os specific build commands 2024-02-04 15:58:29 -08:00
Cargo.toml Add logic for managing language and theme extensions (#7467) 2024-02-07 15:14:50 -05:00
LICENSE-GPL chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
RELEASE_CHANNEL Put release channel back to dev 2023-11-17 14:31:49 -08:00