-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntax coloring of non-example parameters in scenario outline step not working when example parameter used in the same step #25
Comments
This behavior is by design, but maybe not the best one.
A tricky example would be the following (this example does not make sense, of course, but it is hard to detect): Let's consider this step definition
And the following scenario outline
In this example
It is also a problem to detect the situation, because the regex of the step definition might not even match to the step line with the placeholder. E.g. in my case the regex allows letters and spaces ( |
I see. Since the outline parameter is surrounded by <> would you be able to do the coloring of all of the parameters based on the placeholder (column name in the Examples table) before substituting the value in there? The column names shouldn't contain any special characters and they should be discernible based on the <>. Then your match you are using for current non-outline parameters would work for the remaining parameter right? I know that I don't know anything and I am oversimplifying lots of stuff so if this doesn't make any sense please let me know. I just wanted to share that incase it sparked an idea on your side. Thanks for all of the work on the extension. It is working very well for me so far. |
When using Scenario Outline and using a parameter from the Examples table in a step any additional parameters used in that same step do not have Syntax Coloring regardless of the position of the parameters in the step.
The following example shows working highlighting of a parameter in line 1 and the Example parameter highlighted in green and an additional parameter 'Duration' left white.
Here is an example where the white parameter is first. It exhibits the same behavior.
Any steps after the affected steps that don't contain example parameters highlight correctly.
The text was updated successfully, but these errors were encountered: