Skip to content

Commit 0f0c864

Browse files
committed
Merge branch 'development' into 64bits
Conflicts: PluginCore/ScintillaNet/ScintillaControl.cs
2 parents 1089edc + a31167e commit 0f0c864

File tree

61 files changed

+2618
-2030
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+2618
-2030
lines changed

External/Plugins/AS3Context/Context.cs

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -334,23 +334,14 @@ public override void BuildClassPath()
334334
}
335335

336336
// intrinsics (deprecated, excepted for FP10 Vector.<T>)
337-
string fp9cp = as3settings.AS3ClassPath + S + "FP9";
338-
AddPath(PathHelper.ResolvePath(fp9cp));
339-
if (majorVersion > 9)
337+
// add from the highest version number (FP11 > FP10 > FP9)
338+
string fp = as3settings.AS3ClassPath + S + "FP";
339+
for (int i = majorVersion; i >= 9; i--)
340340
{
341-
for (int i = 10; i <= majorVersion; i++)
342-
{
343-
string fp10cp = as3settings.AS3ClassPath + S + "FP" + i;
344-
AddPath(PathHelper.ResolvePath(fp10cp));
345-
for (int j = 1; j <= minorVersion; j++)
346-
{
347-
string fp101cp = as3settings.AS3ClassPath + S + "FP" + majorVersion + "." + minorVersion;
348-
AddPath(PathHelper.ResolvePath(fp101cp));
349-
}
350-
}
341+
AddPath(PathHelper.ResolvePath(fp + i));
351342
}
352343

353-
// add external pathes
344+
// add external paths
354345
List<PathModel> initCP = classPath;
355346
classPath = new List<PathModel>();
356347
if (contextSetup.Classpath != null)
@@ -361,20 +352,20 @@ public override void BuildClassPath()
361352

362353
// add library
363354
AddPath(PathHelper.LibraryDir + S + "AS3" + S + "classes");
364-
// add user pathes from settings
355+
// add user paths from settings
365356
if (settings.UserClasspath != null && settings.UserClasspath.Length > 0)
366357
{
367358
foreach (string cpath in settings.UserClasspath) AddPath(cpath.Trim());
368359
}
369360

370-
// add initial pathes
361+
// add initial paths
371362
foreach (PathModel mpath in initCP) AddPath(mpath);
372363

373364
// parse top-level elements
374365
InitTopLevelElements();
375366
if (cFile != null) UpdateTopLevelElements();
376367

377-
// add current temporaty path
368+
// add current temporary path
378369
if (temporaryPath != null)
379370
{
380371
string tempPath = temporaryPath;

External/Plugins/AS3Context/PluginMain.cs

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -265,23 +265,25 @@ public void HandleEvent(Object sender, NotifyEvent e, HandlingPriority priority)
265265
else if (inMXML)
266266
{
267267
DataEvent de = e as DataEvent;
268-
switch (de.Action)
268+
if (de.Action == "XMLCompletion.Element")
269269
{
270-
case "XMLCompletion.Element":
271-
de.Handled = MxmlComplete.HandleElement(de.Data);
272-
break;
273-
case "XMLCompletion.Namespace":
274-
de.Handled = MxmlComplete.HandleNamespace(de.Data);
275-
break;
276-
case "XMLCompletion.CloseElement":
277-
de.Handled = MxmlComplete.HandleElementClose(de.Data);
278-
break;
279-
case "XMLCompletion.Attribute":
280-
de.Handled = MxmlComplete.HandleAttribute(de.Data);
281-
break;
282-
case "XMLCompletion.AttributeValue":
283-
de.Handled = MxmlComplete.HandleAttributeValue(de.Data);
284-
break;
270+
de.Handled = MxmlComplete.HandleElement(de.Data);
271+
}
272+
if (de.Action == "XMLCompletion.Namespace")
273+
{
274+
de.Handled = MxmlComplete.HandleNamespace(de.Data);
275+
}
276+
else if (de.Action == "XMLCompletion.CloseElement")
277+
{
278+
de.Handled = MxmlComplete.HandleElementClose(de.Data);
279+
}
280+
else if (de.Action == "XMLCompletion.Attribute")
281+
{
282+
de.Handled = MxmlComplete.HandleAttribute(de.Data);
283+
}
284+
else if (de.Action == "XMLCompletion.AttributeValue")
285+
{
286+
de.Handled = MxmlComplete.HandleAttributeValue(de.Data);
285287
}
286288
}
287289
}

External/Plugins/ASCompletion/Completion/ASComplete.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1920,7 +1920,7 @@ static private bool HandleDotCompletion(ScintillaControl Sci, bool autoHide)
19201920
result = new ASResult();
19211921
if (expr.Separator == '"')
19221922
{
1923-
tmpClass = ctx.ResolveType("String", null);
1923+
tmpClass = ctx.ResolveType(ctx.Features.stringKey, null);
19241924
result.Type = tmpClass;
19251925
dotIndex = 1;
19261926
}
@@ -2513,7 +2513,7 @@ static private ASResult EvalExpression(string expression, ASExpr context, FileMo
25132513
else if (token == "\"") // literal string
25142514
{
25152515
head = new ASResult();
2516-
head.Type = ASContext.Context.ResolveType("String", null);
2516+
head.Type = ASContext.Context.ResolveType(ASContext.Context.Features.stringKey, null);
25172517
}
25182518
else head = EvalVariable(token, context, inFile, inClass); // regular eval
25192519

0 commit comments

Comments
 (0)