alexkrechik / VSCucumberAutoComplete

Cucumber (Gherkin) Full Support Extension for VSCode
https://marketplace.visualstudio.com/items?itemName=alexkrechik.cucumberautocomplete
MIT License
332 stars 82 forks source link

Syntax highlighting stops when scenario line ends with .json #508

Open nprav opened 1 month ago

nprav commented 1 month ago

This issue was previously resolved in #290, but I see this occurring again now. The gherkin syntax highlight stops working after a 'json' is detected in a line.

image

image

Note the difference in highlighting for the And, Then, But gherkin keywords.

I am using extension v3.0.5 Vscode version: 1.94.2

I see this commit was done to fix this previously: https://github.com/alexkrechik/VSCucumberAutoComplete/pull/348/commits/781aad35d3609012b37d7a7db6e61738b43af2dd

But the file no longer exists in the repo, and a similar file does not have the same changes: https://github.com/alexkrechik/VSCucumberAutoComplete/blob/master/syntaxes/json-embed.json#L8

Can this be fixed again?

Originally posted by @nprav in https://github.com/alexkrechik/VSCucumberAutoComplete/issues/290#issuecomment-2421499893