Variable: sqlind-sqlplus-directive

sqlind-sqlplus-directive is a variable defined in sql-indent.el.

Value

"\\(^set\\s-+\\w+\\(\\s-+[^=].*\\)?$\\)\\|\\(^\\(@@?\\|c\\(?:lear\\|o\\(?:lumn\\|mpute\\)\\)\\|define\\|prompt\\|rem\\|s\\(?:pool\\|tart\\)\\|whenever\\)\\)\\b"

Documentation

Match an SQL*Plus directive at the beginning of a line.

A directive always stands on a line by itself -- we use that to determine the statement start in SQL*Plus scripts.

Source Code

;; Defined in /nix/store/jxjf2h9nnkdqnn1w1mr0ag8bqng2rlrs-emacs-packages-deps/share/emacs/site-lisp/elpa/sql-indent-1.7/sql-indent.el
;;;; Syntactic analysis of SQL code

;;;;; Find the beginning of the current statement

(defconst sqlind-sqlplus-directive
  (concat ;; SET is handled in a special way, to avoid conflicts with the SET
          ;; keyworkd in updated clauses
          "\\(^set\\s-+\\w+\\(\\s-+[^=].*\\)?$\\)\\|\\(^"
	  (regexp-opt '("column" "rem" "define" "spool" "prompt"
                        "clear" "compute" "whenever" "@" "@@" "start")
                      t)
	  "\\)\\b")
  "Match an SQL*Plus directive at the beginning of a line.
A directive always stands on a line by itself -- we use that to
determine the statement start in SQL*Plus scripts.")