Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix parse error of system default
/usr/share/nano/json.nanorc
(Recent) `nano` packages in Ubuntu come with some `.nanorc` files preinstalled. jline's `NanorcParser` sadly fails parsing `/usr/share/nano/json.nanorc` that comes with Ubuntu's package. In particular, it fails at this line in `/usr/share/nano/json.nanorc`: ``` color brightblue "[][]" ``` with the exception ``` java.util.regex.PatternSyntaxException: Unclosed character class near index 3 [][] ^ ... at org.jline.builtins.SyntaxHighlighter$NanorcParser.doPattern(SyntaxHighlighter.java:696) ... ``` Fixes jline#1156
- Loading branch information