-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ejc-sql-separator-re & add tests to regexp_test
- Loading branch information
Showing
2 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
;;; ejc-format.el -- SQL formatting library (the part of ejc-sql). | ||
|
||
;;; Copyright © 2012-2019 - Kostafey <[email protected]> | ||
;;; Copyright © 2012-2024 - Kostafey <[email protected]> | ||
|
||
;;; This program is free software; you can redistribute it and/or modify | ||
;;; it under the terms of the GNU General Public License as published by | ||
|
@@ -27,8 +27,8 @@ | |
"The char with purpose to separate the SQL statement both other.") | ||
|
||
(defun ejc-sql-separator-re () | ||
(format "^\\s-*%s\\s-*" (or (alist-get :separator ejc-db) | ||
ejc-sql-separator))) | ||
(format "^\\s-*%s\\(\\s-+\\|\n\\)" (or (alist-get :separator ejc-db) | ||
ejc-sql-separator))) | ||
|
||
(defun ejc-get-border-top () | ||
"Get top position of batch statement(s) seperator `ejc-sql-separator'. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters