Function: sqlind-lone-semicolon

sqlind-lone-semicolon is a natively compiled function defined in sql-indent.el.

Signature

(sqlind-lone-semicolon SYNTAX BASE-INDENTATION)

Documentation

Indent a lone semicolon with the statement start. For example:

If the current line contains a single semicolon ';', it will be indented at the same level as the anhcor of SYNTAX. Otherwise, BASE-INDENTATION is returned unchanged. For example:

    select col
    from my_table
    ;

This is an indentation adjuster and needs to be added to the
`sqlind-indentation-offsets-alist`

Source Code

;; Defined in /nix/store/jxjf2h9nnkdqnn1w1mr0ag8bqng2rlrs-emacs-packages-deps/share/emacs/site-lisp/elpa/sql-indent-1.7/sql-indent.el
(defun sqlind-lone-semicolon (syntax base-indentation)
  "Indent a lone semicolon with the statement start.  For example:

If the current line contains a single semicolon ';', it will be
indented at the same level as the anhcor of SYNTAX.  Otherwise,
BASE-INDENTATION is returned unchanged.  For example:

    select col
    from my_table
    ;

This is an indentation adjuster and needs to be added to the
`sqlind-indentation-offsets-alist`"
  (save-excursion
    (back-to-indentation)
    (if (looking-at ";")
        (sqlind-use-anchor-indentation syntax base-indentation)
      base-indentation)))