diff options
author | Christophe Coevoet <stof@notk.org> | 2014-01-05 16:01:39 +0100 |
---|---|---|
committer | Christophe Coevoet <stof@notk.org> | 2014-01-05 16:01:39 +0100 |
commit | eb4e463d2e64b4b691166ac8e6cab4004cdaadfb (patch) | |
tree | 54b111a0610f64ccc8e71a059c5dfc64efdd16b1 | |
parent | 0e187dc6d5b3735c7fe82d79e6c2ceebeebc2d55 (diff) | |
download | pygments-eb4e463d2e64b4b691166ac8e6cab4004cdaadfb.tar.gz |
Added proper support for escaped pipes in the GherkinLexer
-rw-r--r-- | pygments/lexers/other.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pygments/lexers/other.py b/pygments/lexers/other.py index 10598fb4..6c5075a3 100644 --- a/pygments/lexers/other.py +++ b/pygments/lexers/other.py @@ -1780,6 +1780,7 @@ class GherkinLexer(RegexLexer): 'examples_table_header': [ (r"\s+\|\s*$", Keyword, "#pop:2"), include('comments'), + (r"\\\|", Name.Variable), (r"\s*\|", Keyword), (r"[^\|]", Name.Variable), ], @@ -1822,6 +1823,7 @@ class GherkinLexer(RegexLexer): 'table_content': [ (r"\s+\|\s*$", Keyword, "#pop"), include('comments'), + (r"\\\|", String), (r"\s*\|", Keyword), include('string'), ], |