question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pgcli syntax highlighting does not understand double quote

See original GitHub issue

reading 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:closed
  • Created 8 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
amjithcommented, Feb 8, 2016

@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 highlights Michael in red which denotes it’s a string and then Grad is all gray denoting unfinished quote.

double-quote

0reactions
amjithcommented, Feb 11, 2016

Thank you for fixing it. I’ll bump up the version in the next release. Cheers!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found