2020-12-17 V2.0.2012.1701
*.[改进]当以json模式post数据时,自动转码json中的中文。 *.[改进]修复json查看器括号折叠不正确的BUG。
This commit is contained in:
1 parent
11ee9eb8e2
commit
e9f5ca3c3c
6 files changed
+1049
-1047
No files matched your search
@@ -52,7 +52,7 @@ namespace JackWangCUMT.WinForm
|
||||
{
|
||||
startLines.Push(i);
|
||||
}
|
||||
if (text_trim.StartsWith("}")) // Look for method endings
|
||||
if (text_trim.StartsWith("}") || text_trim.EndsWith("},")) // Look for method endings
|
||||
{
|
||||
if (startLines.Count > 0)
|
||||
{
|
||||
@@ -60,23 +60,11 @@ namespace JackWangCUMT.WinForm
|
||||
list.Add(new FoldMarker(document, start, document.GetLineSegment(start).Length, i, 57, FoldType.TypeBody, "...}"));
|
||||
}
|
||||
}
|
||||
if (text_trim.StartsWith("[")) // Look for method starts
|
||||
if (text_trim.StartsWith("[")|| text_trim.EndsWith("[")) // Look for method starts
|
||||
{
|
||||
startLines.Push(i);
|
||||
}
|
||||
if (text_trim.StartsWith("]")) // Look for method endings
|
||||
{
|
||||
if (startLines.Count > 0)
|
||||
{
|
||||
int start = startLines.Pop();
|
||||
list.Add(new FoldMarker(document, start, document.GetLineSegment(start).Length, i, 57, FoldType.TypeBody, "...]"));
|
||||
}
|
||||
}
|
||||
if (text_trim.EndsWith("[")) // Look for method starts
|
||||
{
|
||||
startLines.Push(i);
|
||||
}
|
||||
if (text_trim.StartsWith("]")) // Look for method endings
|
||||
if (text_trim.StartsWith("]") || text_trim.EndsWith("],")) // Look for method endings
|
||||
{
|
||||
if (startLines.Count > 0)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user