You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Syntax highlighting for manual sometimes failes...
Since about 3.13.0 jline3 introduced syntax highlighted for less which is enabled by default.
In fact the default configuration of this highlighting is a bit strange and does not match sqlline/sql commands.
It also fails on some envs like below.
java.util.regex.PatternSyntaxException: Unclosed character class near index 77
'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'
^
at java.util.regex.Pattern.error(Pattern.java:1969)
at java.util.regex.Pattern.clazz(Pattern.java:2562)
at java.util.regex.Pattern.sequence(Pattern.java:2077)
at java.util.regex.Pattern.expr(Pattern.java:2010)
at java.util.regex.Pattern.group0(Pattern.java:2919)
at java.util.regex.Pattern.sequence(Pattern.java:2065)
at java.util.regex.Pattern.expr(Pattern.java:2010)
at java.util.regex.Pattern.compile(Pattern.java:1702)
at java.util.regex.Pattern.<init>(Pattern.java:1352)
at java.util.regex.Pattern.compile(Pattern.java:1028)
at org.jline.builtins.Nano$NanorcParser.doPattern(Nano.java:1797)
at org.jline.builtins.Nano$NanorcParser.addHighlightRule(Nano.java:1784)
at org.jline.builtins.Nano$NanorcParser.parse(Nano.java:1697)
at org.jline.builtins.Nano$SyntaxHighlighter.build(Nano.java:1435)
at org.jline.builtins.Less.openSource(Less.java:1023)
at org.jline.builtins.Less.run(Less.java:324)
at org.jline.builtins.Commands.less(Commands.java:150)
at org.jline.builtins.Commands.less(Commands.java:122)
The text was updated successfully, but these errors were encountered:
Syntax highlighting for manual sometimes failes...
Since about 3.13.0 jline3 introduced syntax highlighted for
less
which is enabled by default.In fact the default configuration of this highlighting is a bit strange and does not match sqlline/sql commands.
It also fails on some envs like below.
The text was updated successfully, but these errors were encountered: