emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/sql-indent 1caf03984f 1/2: fix syntax checker for CONST


From: ELPA Syncer
Subject: [elpa] externals/sql-indent 1caf03984f 1/2: fix syntax checker for CONSTRAINT IF EXISTS (#104, fix #103)
Date: Thu, 19 May 2022 17:58:17 -0400 (EDT)

branch: externals/sql-indent
commit 1caf03984f38a6cd9e115b2c1df58f5303247226
Author: Thijs <thijso+github@gmail.com>
Commit: GitHub <noreply@github.com>

    fix syntax checker for CONSTRAINT IF EXISTS (#104, fix #103)
    
    Co-authored-by: thijs <thijso@gmail.com>
---
 sql-indent.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sql-indent.el b/sql-indent.el
index b2c9bbee7e..c8f8a72d98 100644
--- a/sql-indent.el
+++ b/sql-indent.el
@@ -497,7 +497,7 @@ We try to avoid false positives, like \"end if\" or the 
various
          (forward-word -1)
          ;; we don't want to match an "end if", and things like "drop index if
          ;; exists..." and "create index if not exist..."
-         (not (looking-at 
"end\\|schema\\|table\\|view\\|index\\|type\\|trigger\\|procedure\\|function\\|routine\\|package\\|body\\|extension")))))
+         (not (looking-at 
"end\\|schema\\|table\\|view\\|index\\|constraint\\|type\\|trigger\\|procedure\\|function\\|routine\\|package\\|body\\|extension")))))
 
 (defun sqlind-maybe-if-statement ()
   "If (point) is on an IF statement, report its syntax."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]