Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(parser): make
parse_request
handle request
TS nodes
Problem: Placing cursor between a request method and a uri and then invoking `:Rest run` causes the node to be incorrectly parsed leading to an error. See the following where the column above the caret (^) denotes the cursor position: ``` GET https://google.com ^ cursor above caret ``` Running this will cause an error. This is because the `parser.parse_request` method cannot handle Treesitter nodes of type `request`. Solution: Make the `parser.parse_request` function handle Treesitter nodes of type `request` by recursively calling itself on the `request` node and taking that output when it finds a `request` node.
- Loading branch information