Closed bopjesvla closed 6 years ago
Thanks for reporting this. Can you tell me what SQL dialect is this? Thanks, Alex.
Thanks for the quick reply! Dollar-quoting of strings may be Postgres-specific, other than that it's all in the SQL standard.
I added support for the $$ quote syntax in #55 with the following caveats:
sql-product
is set to 'postgres(defvar my-sql-indentation-offsets-alist
`((in-begin-block sqlind-use-anchor-indentation +)
(block-end sqlind-use-anchor-indentation)
,@sqlind-default-indentation-offsets-alist))
(add-hook 'sqlind-minor-mode-hook
(lambda ()
(setq sqlind-indentation-offsets-alist
my-sql-indentation-offsets-alist)))
If you want to test the changes they are available in the pr54
branch if you clone this repo. Otherwise, I will merge the pull request in a day or so.
Best Regards, Alex.
Merged the fix into the master branch, please let me know if you have any problems with it.
Current behavior:
Expected: