Skip to content

Commit 10d6ef2

Browse files
committed
Support template string inline css
1 parent c9972ca commit 10d6ef2

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

Cargo.lock

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ tree-sitter = { version = "0.25.6", features = ["wasm"] }
579579
tree-sitter-bash = "0.25.0"
580580
tree-sitter-c = "0.23"
581581
tree-sitter-cpp = "0.23"
582-
tree-sitter-css = "0.23"
582+
tree-sitter-css = { git = "https://github.com/mantou132/tree-sitter-css", rev = "62bb39a376ee8aa0ceb6cab27474b7c7136913b9" }
583583
tree-sitter-diff = "0.1.0"
584584
tree-sitter-elixir = "0.3"
585585
tree-sitter-embedded-template = "0.23.0"

crates/languages/src/javascript/injections.scm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
(call_expression
99
function: (identifier) @_name (#eq? @_name "css")
10-
arguments: (template_string (string_fragment) @injection.content
11-
(#set! injection.language "css"))
10+
arguments: (template_string) @injection.content
11+
(#set! injection.language "css")
1212
)
1313

1414
(call_expression

crates/languages/src/typescript/injections.scm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
(call_expression
1313
function: (identifier) @_name (#eq? @_name "css")
14-
arguments: (template_string (string_fragment) @injection.content
15-
(#set! injection.language "css"))
14+
arguments: (template_string) @injection.content
15+
(#set! injection.language "css")
1616
)
1717

1818
(call_expression

0 commit comments

Comments
 (0)