ZIm/crates/languages/src
earomc 1a9af10ca2
rust: Add highlight selector for doc comments (#15384)
## Release Notes:

- Added ability to style doc comments in Rust separately with
`comment.doc`
([#15322](https://github.com/zed-industries/zed/issues/15322)).


Just required adding another query to the highlights.scm file. Took
inspiration from the tree-sitter-rust repository
[here](https://github.com/tree-sitter/tree-sitter-rust/blob/master/queries/highlights.scm)

#### Doc comments customized in the theme are working now:

![grafik](https://github.com/user-attachments/assets/549f20d6-534c-4c3b-a317-3be6bc44352e)

#### Snippet from the .json theme file

![grafik](https://github.com/user-attachments/assets/da1d7e3d-b6a5-4ba5-9fef-047d69f9ea03)
2024-07-29 08:53:17 -04:00
..
bash Recognize PKGBUILD as bash script (#10946) 2024-04-25 09:44:52 -04:00
c Clean up whitespace (#10755) 2024-04-23 13:31:21 -04:00
cpp cpp: Improve syntax highlighting (#13922) 2024-07-25 00:55:21 +03:00
css Use language settings' prettier parsers as a fallback for files with no path (#12273) 2024-05-25 10:50:53 +03:00
go Bump tree-sitter and related core language parser libraries (#14986) 2024-07-24 23:38:21 +03:00
gomod File context for assistant panel (#9712) 2024-03-29 13:55:01 -07:00
gowork File context for assistant panel (#9712) 2024-03-29 13:55:01 -07:00
javascript Fix TSX and JavaScript shorthand property syntax highlighting (#12512) 2024-06-03 00:52:16 +02:00
jsdoc Clean up whitespace (#10755) 2024-04-23 13:31:21 -04:00
json Add auto-completion support for package.json files (#12792) 2024-06-08 13:33:29 +03:00
jsonc Add separate JSONC language (#12655) 2024-06-27 11:12:02 +02:00
markdown Bump tree-sitter and related core language parser libraries (#14986) 2024-07-24 23:38:21 +03:00
markdown-inline Bump tree-sitter and related core language parser libraries (#14986) 2024-07-24 23:38:21 +03:00
proto chore: Extract languages from zed crate (#8270) 2024-02-23 15:56:08 +01:00
python Python: Fix auto close for single quotes (#14014) 2024-07-09 15:27:57 -04:00
regex Add regex syntax highlighting for JS and TS (#7851) 2024-03-18 09:49:01 -06:00
rust rust: Add highlight selector for doc comments (#15384) 2024-07-29 08:53:17 -04:00
tsx typescript: Highlight using keyword (#14772) 2024-07-18 17:33:13 -04:00
typescript typescript: Highlight using keyword (#14772) 2024-07-18 17:33:13 -04:00
yaml YAML: set auto_indent_using_last_non_empty_line to false (fix wonky formatting) (#13351) 2024-06-21 10:58:44 +02:00
bash.rs tasks: Expose captured variables to ContextProvider (#12134) 2024-05-22 19:45:43 +02:00
c.rs Update http crate name (#15041) 2024-07-23 15:01:05 -07:00
css.rs Improve the ergonomics of creating local buffers (#10347) 2024-04-10 08:32:51 -06:00
go.rs Show -v verbose flag in go test task label (#15375) 2024-07-28 11:48:40 -04:00
json.rs Remove TODO in JsonLspAdapter (#15338) 2024-07-27 13:05:48 -04:00
lib.rs Bump tree-sitter and related core language parser libraries (#14986) 2024-07-24 23:38:21 +03:00
python.rs Add pyright workspace configuration (#14265) 2024-07-12 15:13:09 -07:00
rust.rs Update http crate name (#15041) 2024-07-23 15:01:05 -07:00
tailwind.rs windows: Fix tailwindcss-language-server (#13891) 2024-07-09 12:07:20 -07:00
typescript.rs windows: Fix eslint installation (#15331) 2024-07-27 10:24:05 -04:00
vtsls.rs Fix rendering issue with vtsls (#15087) 2024-07-24 17:30:44 +03:00
yaml.rs Add language_server_workspace_configuration to extension API (#10212) 2024-04-05 17:04:07 -04:00