summaryrefslogtreecommitdiff
path: root/pygments/lexers/other.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/other.py')
-rw-r--r--pygments/lexers/other.py17
1 files changed, 12 insertions, 5 deletions
diff --git a/pygments/lexers/other.py b/pygments/lexers/other.py
index 0b18c77a..d3eac45c 100644
--- a/pygments/lexers/other.py
+++ b/pygments/lexers/other.py
@@ -923,7 +923,7 @@ class LogtalkLexer(RegexLexer):
'directive': [
# Conditional compilation directives
- (r'(el)?if(?=[(])', Keyword, 'root'),
+ (r'(el)?if(?=[(])', Keyword, 'root'),
(r'(e(lse|ndif))[.]', Keyword, 'root'),
# Entity directives
(r'(category|object|protocol)(?=[(])', Keyword, 'entityrelations'),
@@ -2136,7 +2136,9 @@ class GherkinLexer(RegexLexer):
(r"[^\|]", Name.Variable),
],
'scenario_sections_on_stack': [
- (scenario_keywords_regexp, bygroups(Text, Name.Class, Name.Class, Name.Constant), "multiline_descriptions_on_stack"),
+ (scenario_keywords_regexp,
+ bygroups(Text, Name.Class, Name.Class, Name.Constant),
+ "multiline_descriptions_on_stack"),
],
'narrative': [
include('scenario_sections_on_stack'),
@@ -2170,9 +2172,14 @@ class GherkinLexer(RegexLexer):
include('table_vars'),
(r'@[^@\s]+', Name.Namespace),
(step_keywords_regexp, bygroups(Text, Keyword)),
- (feature_keywords_regexp, bygroups(Name.Class, Name.Class, Name.Constant), 'narrative'),
- (scenario_keywords_regexp, bygroups(Text, Name.Class, Name.Class, Name.Constant), "multiline_descriptions"),
- (examples_regexp, bygroups(Text, Name.Class, Name.Class, Name.Constant), "scenario_table_description"),
+ (feature_keywords_regexp,
+ bygroups(Name.Class, Name.Class, Name.Constant), 'narrative'),
+ (scenario_keywords_regexp,
+ bygroups(Text, Name.Class, Name.Class, Name.Constant),
+ "multiline_descriptions"),
+ (examples_regexp,
+ bygroups(Text, Name.Class, Name.Class, Name.Constant),
+ "scenario_table_description"),
(r'(\s|.)', Text),
]
}