alex-hhh / emacs-sql-indent

Syntax based indentation for SQL files inside GNU Emacs
GNU General Public License v3.0
121 stars 18 forks source link

fixups for indenting where clauses #93

Closed alex-hhh closed 4 years ago

alex-hhh commented 4 years ago

A line under the "where" clause should be lined up with the first element after the where clause, unless it is a logical operator, in which case the operator should line up under the where clause. Fixed how the base column is calculated in sqlind-left-justify-logical-operator.

Some tests (pr17 and p19) had to be fixed as a result. Also introduced pr93 to verify this test case.