fix lua comment folding
This commit is contained in:
parent
8d1284ddfa
commit
6c5ab388cf
1 changed files with 2 additions and 2 deletions
|
|
@ -60,7 +60,7 @@ oop.inherits(FoldMode, BaseFoldMode);
|
|||
return "start";
|
||||
} else if (match[2]) {
|
||||
var type = session.bgTokenizer.getState(row) || "";
|
||||
if (type.indexOf("comment") != -1 || type.indexOf("string") != -1)
|
||||
if (type[0] == "bracketedComment" || type[0] == "bracketedString")
|
||||
return "start";
|
||||
} else {
|
||||
return "start";
|
||||
|
|
@ -75,7 +75,7 @@ oop.inherits(FoldMode, BaseFoldMode);
|
|||
return "end";
|
||||
} else if (match[0][0] === "]") {
|
||||
var type = session.bgTokenizer.getState(row - 1) || "";
|
||||
if (type.indexOf("comment") != -1 || type.indexOf("string") != -1)
|
||||
if (type[0] == "bracketedComment" || type[0] == "bracketedString")
|
||||
return "end";
|
||||
} else
|
||||
return "end";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue