branch: externals/sql-indent
commit a07ba4e73cd694e9e124e0368c4951f015aec260
Author: Alex Harsanyi <[email protected]>
Commit: Alex Harsanyi <[email protected]>

    put our own syntax table into sql-mode
---
 sql-indent.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sql-indent.el b/sql-indent.el
index bb84dff..76afd23 100644
--- a/sql-indent.el
+++ b/sql-indent.el
@@ -1723,6 +1723,10 @@ See also `align' and `align-rules-list'")
 ;;;###autoload
 (defun sqlind-setup ()
   (set-syntax-table sqlind-syntax-table)
+  ;; force our syntax table onto sql-mode.  This is not really clean and if
+  ;; this is integrated into sql.el, we need to convince the maintainers that
+  ;; chars like "." are more useful as symbols than punctuation.
+  (setq sql-mode-syntax-table sqlind-syntax-table)
   (set (make-local-variable 'indent-line-function) 'sqlind-indent-line)
   (define-key sql-mode-map [remap beginning-of-defun] 
'sqlind-beginning-of-statement)
   (setq align-mode-rules-list sqlind-align-rules))

Reply via email to