Closed treywood closed 4 weeks ago
This would be easier to implement now with recent updates in the grammar. I’ll have a look if I can merge or rebase your commits later. Merging PRs in tree-sitter parser is hard 😭
oof I actually think recent changes in main broke some thing outside of this PR. in particular, external bodies are broken with response handler scripts. specifically this test fails:
GET https://www.example.com
< ./user.json
> /handler.json
expected result:
(document
(section
(request
method: (method)
url: (target_url)
body: (external_body
path: (path))
(res_handler_script
(path))))
actual result:
(document
(section
(request
method: (method)
url: (target_url)
body: (external_body
path: (path))
body: (raw_body) <-- unexpected
(res_handler_script
(path))))
it seems like additional content after an external body causes everything to just be parsed as a raw body
@boltlessengineer I rebased on main, conflicts weren't too terrible :)
@boltlessengineer bump :)
Merging now. Thank you for your contribution!
as supported in jetbrains IDEs: https://jetbrains.com/help/rider/Exploring_HTTP_Syntax.html#response-redirect