Skip to content

Commit

Permalink
fix folding when adding tags before a Background #125
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrafung committed Jun 7, 2021
1 parent b6aaaad commit f2130d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public GherkinScenario() : base(GherkinNodeTypes.SCENARIO)

public bool IsBackground()
{
return FirstChild?.NodeType == GherkinTokenTypes.BACKGROUND_KEYWORD;
return this.FindChild<GherkinToken>(o => o.NodeType == GherkinTokenTypes.BACKGROUND_KEYWORD) != null;
}

public string GetScenarioText()
Expand Down

0 comments on commit f2130d7

Please sign in to comment.