Add injections for Isograph function calls in JavaScript and TypeScript (#36320)

Required for https://github.com/isographlabs/isograph/pull/568 to work
properly. Tested with a local build and made sure everything's working
great!

Release Notes:

- JavaScript/TypeScript/JSX: Added support for injecting Isograph language support into `iso`
function calls
This commit is contained in:
Iha Shin (신의하)
2025-09-09 01:04:37 +09:00
committed by GitHub
parent 2325f14713
commit 8d05bb090c
3 changed files with 18 additions and 0 deletions

View File

@@ -73,3 +73,9 @@
arguments: (arguments (template_string (string_fragment) @injection.content
(#set! injection.language "graphql")))
)
(call_expression
function: (identifier) @_name(#match? @_name "^iso$")
arguments: (arguments (template_string (string_fragment) @injection.content
(#set! injection.language "isograph")))
)

View File

@@ -73,3 +73,9 @@
arguments: (arguments (template_string (string_fragment) @injection.content
(#set! injection.language "graphql")))
)
(call_expression
function: (identifier) @_name(#match? @_name "^iso$")
arguments: (arguments (template_string (string_fragment) @injection.content
(#set! injection.language "isograph")))
)

View File

@@ -78,6 +78,12 @@
(#set! injection.language "graphql")))
)
(call_expression
function: (identifier) @_name(#match? @_name "^iso$")
arguments: (arguments (template_string (string_fragment) @injection.content
(#set! injection.language "isograph")))
)
;; Angular Component template injection
(call_expression
function: [