ZIm/crates/languages/src/tsx
Affan Shahid 352c95cf0d
Add injections for GraphQL template literals and function calls (#16368)
This PR adds syntax highlighting support for `gql` and `graphql` tagged
literals. It also adds highlighting for `graphql()` and `gql()` function
calls, which are another common way to define queries.

Note: I am using the
[`graphql`](https://github.com/11bit/zed-extension-graphql) extension to
provide syntax highlighting

Before:
<img width="413" alt="image"
src="https://github.com/user-attachments/assets/114a98be-9790-4cdf-ba98-553f777ff08a">

After:
<img width="418" alt="image"
src="https://github.com/user-attachments/assets/98fc5dfd-d1a3-45c4-be8e-063cf68b6e6e">

Release Notes:

- Added syntax highlighting for `graphql` tagged template literals and
function calls in javascript, typescript and tsx languages.
2024-08-23 12:36:45 -06:00
..
brackets.scm windows: Replace symlinks with files for TSX Tree-sitter queries (#13893) 2024-07-08 10:32:20 -04:00
config.toml Use language settings' prettier parsers as a fallback for files with no path (#12273) 2024-05-25 10:50:53 +03:00
embedding.scm chore: Extract languages from zed crate (#8270) 2024-02-23 15:56:08 +01:00
highlights-jsx.scm chore: Extract languages from zed crate (#8270) 2024-02-23 15:56:08 +01:00
highlights.scm typescript: Highlight using keyword (#14772) 2024-07-18 17:33:13 -04:00
indents.scm windows: Replace symlinks with files for TSX Tree-sitter queries (#13893) 2024-07-08 10:32:20 -04:00
injections.scm Add injections for GraphQL template literals and function calls (#16368) 2024-08-23 12:36:45 -06:00
outline.scm assistant: Add annotations to more languages (#15866) 2024-08-07 13:47:21 +02:00
overrides.scm chore: Change git deps to crates.io dependencies where possible (#12362) 2024-05-27 23:32:51 +02:00
runnables.scm Added TSX test runnables (#12922) 2024-06-12 11:02:24 +02:00