Closed daniilrozanov closed 1 month ago
Did you also update nvim-treesitter before updating the parser? That's odd as the HTTP parser tests are passing
As @NTBBloodbath said, check that you have updated treesitter and the parser. I'm running treesitter commit b04ccbd
and have http parser installed normally.
GET https://echo.free.beeceptor.com/api?page[number]=3&fields[available]&available
Accept: application/json
gives me the following syntax tree with :InspectTree
(request) ; [1:1 - 3:0]
(method) ; [1:1 - 3]
(target_url) ; [1:5 - 82]
(scheme) ; [1:5 - 9]
(host) ; [1:13 - 35]
(identifier) ; [1:13 - 35]
(path) ; [1:36 - 39]
(identifier) ; [1:37 - 39]
(query_param) ; [1:41 - 54]
key: (key) ; [1:41 - 52]
value: (value) ; [1:53 - 54]
(query_param) ; [1:55 - 72]
key: (key) ; [1:56 - 72]
(query_param) ; [1:73 - 82]
key: (key) ; [1:74 - 82]
(header) ; [2:1 - 3:0]
name: (name) ; [2:1 - 6]
value: (value) ; [2:8 - 3:0]
Having multiple requests doesn't seem to have an effect, they are all parsed separately.
Yes, all work after update
This issue relates to tree-sitter-http/pull/25.
I removed
rest.nvim
and:TSUninstall http
, then install both again. Problem still here, query likeGET https://echo.free.beeceptor.com/api?page[number]=3&fields[available]&available
(from pull request.txt) produces errorTSPlayground
for file with only this query givesAlso, if i add another query after that, second query will be parsed like part of first one. Am i doing something wrong?