peerapats / atom-language-gherkin

Gherkin language support for Atom
26 stars 18 forks source link

Syntax highlighting for bits of code. #10

Open PBartrina opened 8 years ago

PBartrina commented 8 years ago

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. issue

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 :)

PBartrina commented 8 years ago

Any feedback on this?