Permalink
Browse files

Add color for undefined args

  • Loading branch information...
1 parent eeb1a63 commit 274e46645f910db4a48e04f443e6f3ee4da24b64 @aslakhellesoy aslakhellesoy committed Dec 19, 2010
Showing with 4 additions and 4 deletions.
  1. +3 −4 java/Gherkin.iml
  2. +1 −0 java/src/main/java/gherkin/formatter/AnsiFormats.java
View
@@ -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" />
@@ -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>
@@ -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));

0 comments on commit 274e466

Please sign in to comment.