* lisp/progmodes/sql.el: `sql-postgres-statement-starters' defcustom
Recognize common table expression as statement start in Postgres.
This commit is contained in:
parent
61291e06cc
commit
dac694b8bb
1 changed files with 8 additions and 0 deletions
|
@ -484,6 +484,7 @@ file. Since that is a plaintext file, this could be dangerous."
|
|||
:prompt-regexp "^[[:alnum:]_]*=[#>] "
|
||||
:prompt-length 5
|
||||
:prompt-cont-regexp "^[[:alnum:]_]*[-(][#>] "
|
||||
:statement sql-postgres-statement-starters
|
||||
:input-filter sql-remove-tabs-filter
|
||||
:terminator ("\\(^\\s-*\\\\g\\|;\\)" . "\\g"))
|
||||
|
||||
|
@ -1239,6 +1240,13 @@ add your name with a \"-U\" prefix (such as \"-Umark\") to the list."
|
|||
(push (match-string 1 row) res))))
|
||||
(nreverse res))))
|
||||
|
||||
(defcustom sql-postgres-statement-starters
|
||||
(regexp-opt '("with"))
|
||||
"Additional statement-starting keywords in Postgres."
|
||||
:type 'string
|
||||
:group 'SQL
|
||||
:version "28.1")
|
||||
|
||||
;; Customization for Interbase
|
||||
|
||||
(defcustom sql-interbase-program "isql"
|
||||
|
|
Loading…
Add table
Reference in a new issue