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:
@@ -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")))
|
||||
)
|
||||
|
||||
@@ -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")))
|
||||
)
|
||||
|
||||
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user