1. Georg Brandl
  2. pygments-main
Issue #858 new

Incorrect colouring for Gherkin code after table

quantoid
created an issue

Given this snippet:

Feature: Gherkin Syntax Highlighting
    Syntax highlighting for Gherkin code fragments.

    Background: Setting the scene
        Given we have some Gherkin code
          and it includes a table like this:
              |Parameter | Value|
              |ALPHA     |     1|
              |BETA      |     2|

    Scenario: This appears in the wrong colour.
         When Sphinx renders as HTML
         Then all of this scenario is in the same colour as the table above

When rendered as HTML Then we get the Scenario in the same colour as the table (see attached image).

What's really weird is that if I paste the same code into the demo form at http://pygments.org/ then it works fine.

Comments (6)

  1. Log in to comment