pfeiferj / vscode-hurl

Provides a vscode plugin for hurl.dev
Apache License 2.0
23 stars 5 forks source link

Not working if entries are not separated with a comment #1

Closed hasn-prevas closed 1 year ago

hasn-prevas commented 1 year ago

The following example from the documentation is not highlighted correctly:

GET https://google.fr
HTTP/* 301

GET https://google.fr
[Options]
location: true
HTTP/* 200

GET https://google.fr
HTTP/* 301

This is:

GET https://google.fr
HTTP/* 301

#

GET https://google.fr
[Options]
location: true
HTTP/* 200

#

GET https://google.fr
HTTP/* 301
pfeiferj commented 1 year ago

The tree-sitter grammar had a mistake in the http version matcher. The entry in it for HTTP/* was just HTTP. Updated tree-sitter-parser and pulled in the change. v1.0.1 is published and should show up soon in the vscode marketplace.