Skip to content

Commit

Permalink
Nano SyntaxHighlighter support also color codes 0-255
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed May 1, 2020
1 parent ba70973 commit bd35c22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builtins/src/main/java/org/jline/builtins/Nano.java
Original file line number Diff line number Diff line change
Expand Up @@ -1718,6 +1718,8 @@ private Integer toColor(String styleString) {
out += AttributedStyle.MAGENTA;
} else if (styleString.equals("cyan")) {
out += AttributedStyle.CYAN;
} else if (styleString.matches("\\d+")) {
out = Integer.parseInt(styleString);
}
}
return out;
Expand Down

0 comments on commit bd35c22

Please sign in to comment.