nvim-treesitter/queries/http/injections.scm
NTBBloodbath c4e0f290d7 feat(http): switch to new parser version
fix(http): use `@variable.member` for fields

fix(http): keep the comment injection

fix(http): keep `method` capture as `@function.method`

docs(README.md): update HTTP parser maintainers list

feat(http): remove redundant captures

cleanup(http): remove unneedeed highlighting captures
2024-03-18 00:46:59 +02:00

17 lines
393 B
Scheme

; Comments
((comment) @injection.content
(#set! injection.language "comment"))
; Body
((json_body) @injection.content
(#set! injection.language "json"))
((xml_body) @injection.content
(#set! injection.language "xml"))
((graphql_body) @injection.content
(#set! injection.language "graphql"))
; Lua scripting
((script_variable) @injection.content
(#set! injection.language "lua"))