mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 23:45:59 +00:00
ace-builds patch #954
This commit is contained in:
22
patches/ace-builds+1.33.1.patch
Normal file
22
patches/ace-builds+1.33.1.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
diff --git a/node_modules/ace-builds/src-noconflict/mode-sqlserver.js b/node_modules/ace-builds/src-noconflict/mode-sqlserver.js
|
||||
index 7e61d3d..3e0fb97 100644
|
||||
--- a/node_modules/ace-builds/src-noconflict/mode-sqlserver.js
|
||||
+++ b/node_modules/ace-builds/src-noconflict/mode-sqlserver.js
|
||||
@@ -304,7 +304,7 @@ var BaseFoldMode = require("./cstyle").FoldMode;
|
||||
var FoldMode = exports.FoldMode = function () { };
|
||||
oop.inherits(FoldMode, BaseFoldMode);
|
||||
(function () {
|
||||
- this.foldingStartMarker = /(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i;
|
||||
+ this.foldingStartMarker = /(?<!\[)(\bCASE\b|\bBEGIN\b)(?!\])|^\s*(\/\*)/i;
|
||||
this.startRegionRe = /^\s*(\/\*|--)#?region\b/;
|
||||
this.getFoldWidgetRange = function (session, foldStyle, row, forceMultiline) {
|
||||
var line = session.getLine(row);
|
||||
@@ -337,7 +337,7 @@ oop.inherits(FoldMode, BaseFoldMode);
|
||||
var maxRow = session.getLength();
|
||||
var line;
|
||||
var depth = 1;
|
||||
- var re = /(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;
|
||||
+ var re = /(?<!\[)(\bCASE\b|\bBEGIN\b)|(\bEND\b)(?!\])/i;
|
||||
while (++row < maxRow) {
|
||||
line = session.getLine(row);
|
||||
var m = re.exec(line);
|
||||
Reference in New Issue
Block a user