pgcli syntax highlighting does not understand double quote
See original GitHub issuereading http://philip.greenspun.com/sql/introduction.html
and inputting insert into mailing_list (name, email) values ('Michael O''Grady','ogrady@fastbuck.com');
pgcli’s syntax highlighting doesn’t understand the double quote rule.
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Unclosed Single/Double Quotes in Template Strings Break ...
Issue seems to be that its not that template strings are not highlighting but that syntax highlighter has no concept of tilda quoted...
Read more >Postgres CLI with autocompletion and syntax highlighting
I like the idea. It lacks some important functionality e.g. \x does not work. This is a feature I use regularly in the...
Read more >Fixing pandoc PostgreSQL quote syntax highlighting
I mostly fix typos when I see them and it's not too much work; one time, I added new keywords introduced in Readline...
Read more >FAQ - pgcli
BPython is a Python REPL that has auto-completion, syntax-highlighting and displays the docstring of functions as you type. Once you get used to...
Read more >geany syntax highlighting in double quotes - Stack Overflow
VIM syntax highlighting understands that $var in double quotes is interpolated variable, and marks it in different color, however in Geany editor any...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@birkenfeld I’m using PostgresLexer. https://github.com/dbcli/pgcli/blob/master/pgcli/main.py#L34
This is what I see when I do the double quote. You’ll see that after I type
'Michael O''Grad
it highlightsMichael
in red which denotes it’s a string and thenGrad
is all gray denoting unfinished quote.Thank you for fixing it. I’ll bump up the version in the next release. Cheers!