cleanup
This commit is contained in:
parent
295ae4dc81
commit
a0a31e16a2
1 changed files with 5 additions and 10 deletions
|
|
@ -44,16 +44,11 @@ oop.inherits(FoldMode, BaseFoldMode);
|
||||||
* Inheriting cstyle folding because it handles the region comment folding
|
* Inheriting cstyle folding because it handles the region comment folding
|
||||||
* and special block comment folding appropriately.
|
* and special block comment folding appropriately.
|
||||||
*
|
*
|
||||||
* Cstyle's getCommentRegionBlock() contains the sql comment characters '--'.
|
* Cstyle's getCommentRegionBlock() contains the sql comment characters '--' for end region block.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
this.foldingStartMarker = /(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i;
|
this.foldingStartMarker = /(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i;
|
||||||
this.foldingStopMarker = /^(\bEND\b)|^[\s\*]*(\*\/)/i;
|
this.foldingStopMarker = /(\bEND\b)|^[\s\*]*(\*\/)/i;
|
||||||
// this.foldingStopMarker = /(\bEND\b)|^[\s\*]*(\*\/)/i;?need hat?
|
|
||||||
// this.foldingStopMarker = /^(?!\bCASE\b|\bBEGIN\b)(\bEND\b)|^[\s\*]*(\*\/)/i;
|
|
||||||
// this.foldingStopMarker = /^(?!\bCASE\b|\bBEGIN\b).*(\bEND\b)|^[\s\*]*(\*\/)/i;
|
|
||||||
|
|
||||||
|
|
||||||
this.startRegionRe = /^\s*(\/\*|--)#?region\b/;
|
this.startRegionRe = /^\s*(\/\*|--)#?region\b/;
|
||||||
|
|
||||||
this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {
|
this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue