Skip to content

Commit

Permalink
naming
Browse files Browse the repository at this point in the history
  • Loading branch information
GMatrixGames committed Jan 8, 2023
1 parent 134f722 commit ac3a0e3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions FModel/Extensions/AvalonExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static class AvalonExtensions
private static readonly IHighlightingDefinition _xmlHighlighter = LoadHighlighter("Xml.xshd");
private static readonly IHighlightingDefinition _cppHighlighter = LoadHighlighter("Cpp.xshd");
private static readonly IHighlightingDefinition _changelogHighlighter = LoadHighlighter("Changelog.xshd");
private static readonly IHighlightingDefinition _ulangHighlighter = LoadHighlighter("ULang.xshd");
private static readonly IHighlightingDefinition _verseHighlighter = LoadHighlighter("Verse.xshd");

[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static IHighlightingDefinition LoadHighlighter(string resourceName)
Expand All @@ -40,8 +40,8 @@ public static IHighlightingDefinition HighlighterSelector(string ext)
return _cppHighlighter;
case "changelog":
return _changelogHighlighter;
case "ulang":
return _ulangHighlighter;
case "verse":
return _verseHighlighter;
case "bat":
case "txt":
case "pem":
Expand Down
4 changes: 2 additions & 2 deletions FModel/FModel.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<None Remove="Resources\athena.png" />
<None Remove="Resources\Json.xshd" />
<None Remove="Resources\Ini.xshd" />
<None Remove="Resources\Ulang.xshd" />
<None Remove="Resources\Verse.xshd" />
<None Remove="Resources\Xml.xshd" />
<None Remove="Resources\Cpp.xshd" />
<None Remove="Resources\Changelog.xshd" />
Expand Down Expand Up @@ -112,7 +112,7 @@
<ItemGroup>
<EmbeddedResource Include="Resources\Json.xshd" />
<EmbeddedResource Include="Resources\Ini.xshd" />
<EmbeddedResource Include="Resources\ULang.xshd" />
<EmbeddedResource Include="Resources\Verse.xshd" />
<EmbeddedResource Include="Resources\Xml.xshd" />
<EmbeddedResource Include="Resources\Cpp.xshd" />
<EmbeddedResource Include="Resources\Changelog.xshd" />
Expand Down
4 changes: 2 additions & 2 deletions FModel/Resources/ULang.xshd → FModel/Resources/Verse.xshd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<SyntaxDefinition name="Ulang Visual Process Language" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008"
extensions=".ulang">
<SyntaxDefinition name="Verse Visual Process Language" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008"
extensions=".verse">

<Color name="Constant" foreground="#C792DD" />
<Color name="Method" foreground="#FFCB6B" />
Expand Down
4 changes: 2 additions & 2 deletions FModel/ViewModels/CUE4ParseViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -771,8 +771,8 @@ public void ExtractAndScroll(CancellationToken cancellationToken, string fullPat
{
if (!TabControl.CanAddTabs) return false;

TabControl.AddTab($"{solarisDigest.ProjectName}.ulang");
TabControl.SelectedTab.Highlighter = AvalonExtensions.HighlighterSelector("ulang");
TabControl.AddTab($"{solarisDigest.ProjectName}.verse");
TabControl.SelectedTab.Highlighter = AvalonExtensions.HighlighterSelector("verse");
TabControl.SelectedTab.SetDocumentText(solarisDigest.ReadableCode, false);
return true;
}
Expand Down

0 comments on commit ac3a0e3

Please sign in to comment.