Skip to content
This repository was archived by the owner on Mar 4, 2018. It is now read-only.

Commit 89a9117

Browse files
committed
Improvements to CL formatting
1 parent 357736d commit 89a9117

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

LanguageTools/CLParser.cs

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -72,39 +72,22 @@ public static string[] SplitUpLine(string Line, int StartSpace, int RecordLength
7272
List<string> lines = new List<string>();
7373
List<string> pieces = new List<string>();
7474
string current = "";
75-
int inBracket = 0;
76-
Boolean inText = false;
7775

7876
foreach (char c in Line.ToCharArray())
7977
{
8078
switch (c)
8179
{
8280
case ' ':
83-
if (inBracket == 0 && !inText)
81+
if (current != "")
8482
{
85-
if (current != "")
86-
{
87-
pieces.Add(current);
88-
}
83+
pieces.Add(current);
8984
current = "";
9085
}
9186
else
9287
{
9388
current += c;
9489
}
9590
break;
96-
case '(':
97-
if (!inText) inBracket++;
98-
current += c;
99-
break;
100-
case ')':
101-
if (!inText) inBracket--;
102-
current += c;
103-
break;
104-
case '\'':
105-
inText = !inText;
106-
current += c;
107-
break;
10891
default:
10992
current += c;
11093
break;

0 commit comments

Comments
 (0)