-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parser-based highlighter #746
Comments
JLine already has a syntax highlighter Nano.SyntaxHighlighter that can be used to highlight command lines. Also Groovy REPL command line highlighting is implemented using I guess you are interested in SQL syntax highlighting. Copy sql.nanorc to your
|
That's true but we cannot use We can resolve the problem you have stated above by enhancing
In default.nanorctheme file:
Parser will be created when parsing nanorc file and we find a first occurrence of parser token type name. The consequent occurrences we will further configure the parser, see
Parser highlight rules will be then applied here
I let you take a look to the code. We can later define the Parser API. |
Currently
org.jline.reader.impl.DefaultParser
can answer if cursor is inside a quoted string or a comment.I would like to contribute here if there no objections
The text was updated successfully, but these errors were encountered: