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
backslash is not defined in PostgresLexer
#2310
Comments
I made a quick fix (without syntax highlighting): sed -i 's/\((r"\[\)\(;:()\\\[\\\]{},.]", Punctuation)\)/\1\\\\\2/' "/home/$USER/.local/lib/$(realpath "$(command -v python3)" | xargs basename)/site-packages/pygments/lexers/sql.py" But it doesn't really answer my question. |
In the title, I said that I use |
PostgresLexer
As you can see in the screenshot, I use lexer to add syntax highlighting to a PostgreSQL script file. It includes standard SQL commands and |
I stumbled on this problem multiple times. I need to lex an SQL script for PostgreSQL, specifically for creating and connecting to DB and creating tables in it. Everything works fine, but I don't know why such command as
\connect
is not defined. Withminted
package for TeX-family typesetting systems, the output of PDF file shows that the backslash in\connect
command is not defined (or probably the command itself):Other PostgreSQL lexers work even worse (some other commands are also not defined). After running
python3 -I _postgres_builtins.py
nothing has changed. Is this a bug or unimplemented syntax?The text was updated successfully, but these errors were encountered: