Add injections for Isograph function calls

This commit is contained in:
Iha Shin 2025-08-17 00:20:35 +09:00
parent d1958aa439
commit 603a4bef6f
No known key found for this signature in database
3 changed files with 18 additions and 0 deletions

View file

@ -58,3 +58,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

@ -58,3 +58,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

@ -63,6 +63,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: [