blodwynn / .feature-file-syntax-highlight-cucumber- Goto Github PK
View Code? Open in Web Editor NEW.feature file syntax highlight Extension for VS Code
.feature file syntax highlight Extension for VS Code
See Gherkin documentation https://docs.cucumber.io/gherkin/reference/#scenario-outline
In my tests I do not always use examples, but also Scenarios as title for the following table.
I checked with the official documentation and they do allow both. Please update the extention to also support "Scenarios"
e.g.
Scenario outline: my test
Given I have entered <input_1> into the calculator
And I have entered <input_2> into the calculator
When I press
Then the result should be on the screen
Scenarios:
| input_1 | input_2 | button | output |
| 20 | 30 | add | 50 |
| 2 | 5 | add | 7 |
If I have a tag in the form of @admin_api, it seems that only the part before the underscore is properly highlighted, the rest is the color of normal text.
I wasn't 100% sure if the underscore is an accepted character, but it seems that the Cucumber documentation uses them in some examples, so I assume it should be ok. See https://docs.cucumber.io/cucumber/api/#development-process for example.
Hi, are you planning on adding localization support for more languages?
According to https://docs.cucumber.io/gherkin/reference/ the proper character to use to mark a line as a comment in a Gherkin feature file is #
. This extension presently uses //
and also uses /* */
for multi-line comments, which I believe are not supported in Gherkin (some people use """
to simulate multi-line comments, but these normally mark doc strings).
Anyway, I think this extension should at least use #
instead of //
. You can change this on line 4 of the language-configuration.json
file. I leave it up to you if you want to simulate multi-line comments with """
or not, but clearly /* */
is not right.
Really love this extension, but this comment thing is bugging me!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.