You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made a .feature file that included a DataTable and Examples table. Some lines had the last several characters uncolored - The lines that had backslashes in them.
β What did you expect to see?
All the text inside the pipe formatting is colored.
π¦ Which tool/library version are you using?
Cucumber extension v1.7.0 for VSCode installed on VS Code v1.74.0
π¬ How could we reproduce it?
Steps to reproduce the behavior:
Install Cucumber extension v1.7 onto VS Code v.1.74.0
Create a file called 'whatever.feature'
Write a scenario that includes either DataTable or Examples table
Put numerous backslashes inside the table's text
Example:
@BugReportFeature: BugReportScenario: DEID117 SuccessGiven I submit a bug report
And I put backslashes in a DataTable or Examples table
| thislineworksfine | | C:\\Users\\thislinewon'thighlightthelast2characters | | Iseeitwithescapednewlinesandescapedbackslashes. ( \n \n \n \n ) willproduce4uncoloredcharacters|Then Cucumber team fixes the highlighting :)
The text was updated successfully, but these errors were encountered:
Thanks for catching this issue! Capturing some notes in case someone is in a position to take a look.
What's happening is the gherkin is being read and parsed as strings; and as they are escaped when evaluating their length, they are being incorrectly calculated as shorter than their full unescaped length. Thus, the syntax highlighting is not fully applied.
π What did you see?
I made a .feature file that included a DataTable and Examples table. Some lines had the last several characters uncolored - The lines that had backslashes in them.
β What did you expect to see?
All the text inside the pipe formatting is colored.
π¦ Which tool/library version are you using?
Cucumber extension v1.7.0 for VSCode installed on VS Code v1.74.0
π¬ How could we reproduce it?
Steps to reproduce the behavior:
Example:
The text was updated successfully, but these errors were encountered: