mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 22:34:13 +00:00
af79e6b423
Update upstream
4be180759e
This will solve #11827
Before:
<img width="644" alt="image"
src="https://github.com/zed-industries/zed/assets/45585937/f6b10667-9197-4e5d-8513-78ce3d22f9e7">
After:
<img width="700" alt="image"
src="https://github.com/zed-industries/zed/assets/45585937/7bd7b0e6-e73c-4d1d-abd6-d6b2d88e97a6">
Release Notes:
- N/A
21 lines
567 B
Scheme
21 lines
567 B
Scheme
(frontmatter
|
|
(frontmatter_js_block) @content
|
|
(#set! "language" "typescript"))
|
|
|
|
(attribute_interpolation
|
|
(attribute_js_expr) @content
|
|
(#set! "language" "typescript"))
|
|
|
|
(html_interpolation
|
|
(permissible_text) @content
|
|
(#set! "language" "typescript"))
|
|
|
|
(script_element
|
|
(raw_text) @content
|
|
(#set! "language" "typescript"))
|
|
|
|
; TODO: add scss/less or more injections
|
|
; https://github.com/virchau13/tree-sitter-astro/blob/4be180759ec13651f72bacee65fa477c64222a1a/queries/injections.scm#L18-L27
|
|
(style_element
|
|
(raw_text) @content
|
|
(#set! "language" "css"))
|