Function: sqlind-syntax-in-delete
sqlind-syntax-in-delete is a natively compiled function defined in
sql-indent.el.
Signature
(sqlind-syntax-in-delete POS START)
Documentation
Return the syntax at POS which is inside a "delete" statement at START.
Source Code
;; Defined in /nix/store/jxjf2h9nnkdqnn1w1mr0ag8bqng2rlrs-emacs-packages-deps/share/emacs/site-lisp/elpa/sql-indent-1.7/sql-indent.el
(defun sqlind-syntax-in-delete (pos start)
"Return the syntax at POS which is inside a \"delete\" statement at START."
(save-excursion
(catch 'finished
(goto-char pos)
;; all select query components are indented relative to the
;; start of the select statement)
(when (looking-at sqlind-delete-clauses-regexp)
(throw 'finished (cons 'delete-clause start)))
(while (re-search-backward sqlind-delete-clauses-regexp start t)
(let* ((match-pos (match-beginning 0))
(clause (sqlind-match-string 0)))
(setq clause (replace-regexp-in-string "[ \t\r\n\f]" " " clause))
(when (sqlind-same-level-statement (point) start)
(throw 'finished
(cons (list 'in-delete-clause clause) match-pos))))))))