Skip to content

Commit

Permalink
nano: fixed xml highlight rule
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed Jul 31, 2019
1 parent fc3579e commit 6125492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtins/src/main/java/org/jline/builtins/Nano.java
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ private SyntaxHighlighter doSyntaxHighlighter() {
out.addRule(s.foreground(AttributedStyle.WHITE), Pattern.compile("^.+$"));
out.addRule(s.foreground(AttributedStyle.GREEN), Pattern.compile("<"), Pattern.compile(">"));
out.addRule(s.foreground(AttributedStyle.CYAN), Pattern.compile("<[^> ]+"));
out.addRule(s.foreground(AttributedStyle.MAGENTA), Pattern.compile("\"[^\"].*\""));
out.addRule(s.foreground(AttributedStyle.MAGENTA), Pattern.compile("\"[^\"]*\""));
out.addRule(s.foreground(AttributedStyle.CYAN), Pattern.compile(">"));
out.addRule(s.foreground(AttributedStyle.YELLOW), Pattern.compile("<!DOCTYPE"), Pattern.compile("[/]?>"));
out.addRule(s.foreground(AttributedStyle.YELLOW), Pattern.compile("<!--"), Pattern.compile("-->"));
Expand Down

0 comments on commit 6125492

Please sign in to comment.