Variable: sqlind-default-indentation-offsets-alist

sqlind-default-indentation-offsets-alist is a variable defined in sql-indent.el.

Value

Large value
((syntax-error sqlind-report-sytax-error)
 (in-string sqlind-report-runaway-string)
 (comment-continuation sqlind-indent-comment-continuation)
 (comment-start sqlind-indent-comment-start) (toplevel 0) (in-block +)
 (in-begin-block +) (block-start 0) (block-end 0)
 (declare-statement +) (package ++) (package-body 0)
 (create-statement +) (defun-start +) (labeled-statement-start 0)
 (statement-continuation +)
 (nested-statement-open sqlind-use-anchor-indentation +)
 (nested-statement-continuation sqlind-use-previous-line-indentation)
 (nested-statement-close sqlind-use-anchor-indentation)
 (with-clause sqlind-use-anchor-indentation) (with-clause-cte +)
 (with-clause-cte-cont ++) (case-clause 0)
 (case-clause-item sqlind-use-anchor-indentation +)
 (case-clause-item-cont sqlind-right-justify-clause)
 (select-clause sqlind-right-justify-clause)
 (select-column sqlind-indent-select-column)
 (select-column-continuation sqlind-indent-select-column +)
 (select-join-condition ++) (select-table sqlind-indent-select-table)
 (select-table-continuation sqlind-indent-select-table +)
 (in-select-clause sqlind-lineup-to-clause-end
		   sqlind-right-justify-logical-operator)
 (insert-clause sqlind-right-justify-clause)
 (in-insert-clause sqlind-lineup-to-clause-end
		   sqlind-right-justify-logical-operator)
 (delete-clause sqlind-right-justify-clause)
 (in-delete-clause sqlind-lineup-to-clause-end
		   sqlind-right-justify-logical-operator)
 (update-clause sqlind-right-justify-clause)
 (in-update-clause sqlind-lineup-to-clause-end
		   sqlind-right-justify-logical-operator))

Documentation

Define the indentation amount for each syntactic symbol.

The value of this variable is an ALIST with the format:

  ((SYNTACTIC-SYMBOL . INDENTATION-OFFSETS) ... )

sqlind-indentation-syntax-symbols documents the list of possible SYNTACTIC-SYMBOL values.

INDENTATION-OFFSETS defines the adjustments made to the indentation for each syntactic-symbol. It is a list of:

  a NUMBER -- the NUMBER will be added to the indentation offset.

  '+ -- the current indentation offset is incremented by
sqlind-basic-offset

  '++ -- the current indentation offset is indentation by 2 *
sqlind-basic-offset

  '- -- the current indentation offset is decremented by
sqlind-basic-offset

  '-- -- the current indentation offset is decremented by 2 *
sqlind-basic-offset

  a FUNCTION -- the syntax and current indentation offset is
passed to the function and its result is used as the new
indentation offset.

See sqlind-calculate-indentation for how the indentation offset is calculated.

Source Code

;; Defined in /nix/store/jxjf2h9nnkdqnn1w1mr0ag8bqng2rlrs-emacs-packages-deps/share/emacs/site-lisp/elpa/sql-indent-1.7/sql-indent.el
(defconst sqlind-default-indentation-offsets-alist
  '((syntax-error                   sqlind-report-sytax-error)
    (in-string                      sqlind-report-runaway-string)

    (comment-continuation           sqlind-indent-comment-continuation)
    (comment-start                  sqlind-indent-comment-start)

    (toplevel                       0)
    (in-block                       +)
    (in-begin-block                 +)
    (block-start                    0)
    (block-end                      0)
    (declare-statement              +)
    (package                        ++)
    (package-body                   0)
    (create-statement               +)
    (defun-start                    +)
    (labeled-statement-start        0)
    (statement-continuation         +)
    (nested-statement-open          sqlind-use-anchor-indentation +)
    (nested-statement-continuation  sqlind-use-previous-line-indentation)
    (nested-statement-close         sqlind-use-anchor-indentation)

    (with-clause                    sqlind-use-anchor-indentation)
    (with-clause-cte                +)
    (with-clause-cte-cont           ++)
    (case-clause                    0)
    (case-clause-item               sqlind-use-anchor-indentation +)
    (case-clause-item-cont          sqlind-right-justify-clause)
    (select-clause                  sqlind-right-justify-clause)
    (select-column                  sqlind-indent-select-column)
    (select-column-continuation     sqlind-indent-select-column +)
    (select-join-condition          ++)
    (select-table                   sqlind-indent-select-table)
    (select-table-continuation      sqlind-indent-select-table +)
    (in-select-clause               sqlind-lineup-to-clause-end
                                    sqlind-right-justify-logical-operator)
    (insert-clause                  sqlind-right-justify-clause)
    (in-insert-clause               sqlind-lineup-to-clause-end
                                    sqlind-right-justify-logical-operator)
    (delete-clause                  sqlind-right-justify-clause)
    (in-delete-clause               sqlind-lineup-to-clause-end
                                    sqlind-right-justify-logical-operator)
    (update-clause                  sqlind-right-justify-clause)
    (in-update-clause               sqlind-lineup-to-clause-end
                                    sqlind-right-justify-logical-operator))
  "Define the indentation amount for each syntactic symbol.

The value of this variable is an ALIST with the format:

  ((SYNTACTIC-SYMBOL . INDENTATION-OFFSETS) ... )

`sqlind-indentation-syntax-symbols' documents the list of possible
SYNTACTIC-SYMBOL values.

INDENTATION-OFFSETS defines the adjustments made to the
indentation for each syntactic-symbol.  It is a list of:

  a NUMBER -- the NUMBER will be added to the indentation offset.

  '+ -- the current indentation offset is incremented by
	`sqlind-basic-offset'

  '++ -- the current indentation offset is indentation by 2 *
	 `sqlind-basic-offset'

  '- -- the current indentation offset is decremented by
	`sqlind-basic-offset'

  '-- -- the current indentation offset is decremented by 2 *
	 `sqlind-basic-offset'

  a FUNCTION -- the syntax and current indentation offset is
	 passed to the function and its result is used as the new
	 indentation offset.

See `sqlind-calculate-indentation' for how the indentation offset
is calculated.")