Pygments incorrectly highlights numbers in Gherkin steps auto-assuming that it will be a variable substitution where in fact it is part of the GWT Regex

Issue #1337 new
Bhrein Brannick
created an issue

See the following example

http://pygments.org/demo/6350451/

Given This Is A Sample Given When This Is A Sample When With A Number 4589 Then This Is A Sample Then To Finish

The Number 4589 is highlighted red assuming visually it will be substituted tot the test automation code (where in fact it is used as part of the GWT).

To reproduce this select the following combination

1) Lexer=Gherkin 2) Style=Emacs

Comments (0)

  1. Log in to comment