Closed bratekarate closed 9 months ago
When using the VSCode extension, the following example HTTP file in Intellij format is not highlighted correctly in the editor:
### postStuff POST {{my_url}} HTTP/1.1 Content-Type: application/json { "my": "data" } > {% client.test("Request executed successfully", function() { client.assert(response.status === 200, "Response status is not 200"); }); %}
Specifically the Intellij script is not colored correctly.
On the other hand, this works:
### postStuff POST {{my_url}} Content-Type: application/x-www-form-urlencoded my=data > {% client.test("Request executed successfully", function() { client.assert(response.status === 200, "Response status is not 200"); }); %}
It seems this regex, does Not detect the start of the Intellij Script: https://github.com/AnWeber/vscode-httpyac/blob/main/syntaxes/http.tmLanguage.json#L564
Syntax highlighting works with next release
When using the VSCode extension, the following example HTTP file in Intellij format is not highlighted correctly in the editor:
Specifically the Intellij script is not colored correctly.
On the other hand, this works: