I amb writing a package in which, at some point, the user enters some text into a text editor to be added later into a .feature file.
I added the grammar correctly to that text editor so it highlights gherkin syntax, but since it's not a full .feature file , it behaves as shown in the image.
Will it be possible to modify the regex injectors to target the start of the file when only Feature: is written so the rest behaves normal? I believe that the checking of the document first word is a lint's task instead of a syntax-highlighter task.
I amb writing a package in which, at some point, the user enters some text into a text editor to be added later into a .feature file.
I added the grammar correctly to that text editor so it highlights gherkin syntax, but since it's not a full .feature file , it behaves as shown in the image.
Will it be possible to modify the regex injectors to target the start of the file when only
Feature:
is written so the rest behaves normal? I believe that the checking of the document first word is a lint's task instead of a syntax-highlighter task.PD: Thank you for coding the package :)