Commit a74e940
fix(parser): make
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.parse_request handle request TS nodes1 parent 272ce95 commit a74e940
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
| 225 | + | |
224 | 226 | | |
225 | 227 | | |
226 | 228 | | |
| |||
0 commit comments