This repository has been archived by the owner on Jul 6, 2022. It is now read-only.
[FORMATTING] Multi-character operators in PostgreSQL syntax are not recognized #54
Labels
bug
Something isn't working
help wanted
Extra attention is needed
vscode
Related to the VSCode Extension
Describe the bug
Multi-character operators in PostreSQL syntax are not recognized.
I prefer to have the
denseOperators
config set tofalse
so that I can have nice spacing in my SQL for readability. Unfortunately with that configuration set, JSON and JSONB operators go from->>
to- > >
which causes PostgreSQL to throw an error statingunexpected >
.More about those operators here: PostgreSQL Docs
Expected Output
Given the following SQL for PostgreSQL:
I expect to format as:
Actual Output
What is currently formatted as:
Usage
I am using this through the VS Code extension which uses
^5.0.0-beta.1
of this package. I tried to confirm that it was not an issue with the extension as best I could, but apologies if it turns out this is a bug with the extension and not this package.I believe these operators are likely only for PostreSQL dialects of SQL.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: