From 9861a9e6cbe6c10388d749e476abbe6402cb4017 Mon Sep 17 00:00:00 2001 From: Rakibul Yeasin Date: Tue, 2 Dec 2025 15:51:18 +0600 Subject: [PATCH] feat: added support for json, xml, graphql inline --- languages/http/injections.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 languages/http/injections.scm 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"))