Skip to content

Commit

Permalink
Add color for undefined args
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Dec 19, 2010
1 parent eeb1a63 commit 274e466
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions java/Gherkin.iml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_5" inherit-compiler-output="false">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
Expand All @@ -11,13 +11,12 @@
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-all:1.8.5" level="project" />
<orderEntry type="library" name="Maven: org.fusesource.jansi:jansi:1.4" level="project" />
<orderEntry type="inheritedJdk" />
<orderEntry type="library" name="Maven: com.googlecode.json-simple:json-simple:1.1" level="project" />
<orderEntry type="library" name="Maven: net.iharder:base64:2.3.8" level="project" />
<orderEntry type="library" name="Maven: org.fusesource.jansi:jansi:1.4" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.8.1" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-all:1.8.5" level="project" />
<orderEntry type="inheritedJdk" />
</component>
</module>

1 change: 1 addition & 0 deletions java/src/main/java/gherkin/formatter/AnsiFormats.java
Expand Up @@ -8,6 +8,7 @@
public class AnsiFormats implements Formats {
private static final Map<String, Format> formats = new HashMap<String, Format>() {{
put("undefined", new ColorFormat(AnsiEscapes.YELLOW));
put("undefined_arg", new ColorFormat(AnsiEscapes.YELLOW, AnsiEscapes.INTENSITY_BOLD)); // Never used, but avoids NPE in formatters.
put("pending", new ColorFormat(AnsiEscapes.YELLOW));
put("pending_arg", new ColorFormat(AnsiEscapes.YELLOW, AnsiEscapes.INTENSITY_BOLD));
put("executing", new ColorFormat(AnsiEscapes.GREY));
Expand Down

0 comments on commit 274e466

Please sign in to comment.