diff --git a/languages/http/injections.scm b/languages/http/injections.scm new file mode 100644 index 0000000..1f42100 --- /dev/null +++ b/languages/http/injections.scm @@ -0,0 +1,11 @@ +; Inject JSON highlighting into JSON request bodies +((json_body) @injection.content + (#set! injection.language "json")) + +; Inject XML highlighting into XML request bodies +((xml_body) @injection.content + (#set! injection.language "xml")) + +; Inject GraphQL highlighting into GraphQL request bodies +((graphql_body) @injection.content + (#set! injection.language "graphql"))