mirror of
https://github.com/4sval/FModel.git
synced 2026-09-14 04:26:40 -05:00
reworked verse highlighter
This commit is contained in:
@@ -2,18 +2,24 @@
|
||||
extensions=".ulang">
|
||||
|
||||
<Color name="Constant" foreground="#C792DD" />
|
||||
<Color name="Field" foreground="#FFCB6B" />
|
||||
<Color name="Method" foreground="#FFCB6B" />
|
||||
<Color name="Variable" foreground="#529EFF" />
|
||||
<Color name="Tag1" foreground="#F07178" />
|
||||
<Color name="Tag2" foreground="#7F848E" />
|
||||
<Color name="Parameter" foreground="#89DDFF" />
|
||||
<Color name="Class" foreground="#FF9D5E" />
|
||||
<Color name="Type" foreground="#C3E88D" />
|
||||
<Color name="Punctuation" foreground="#89DDFF" />
|
||||
<Color name="Punctuation" foreground="#E5C07B" />
|
||||
|
||||
<RuleSet>
|
||||
<Rule color="Constant">\b(?:module|class|attribute)</Rule>
|
||||
<Rule color="Field">\w+(?=(?:<\w+>)+\()</Rule>
|
||||
<Rule color="Constant">\b(?:module|class|attribute|interface|struct|external|enum|where|comparable|component|void|type|subtype)</Rule>
|
||||
<Rule color="Method">\w+(?:\'.*\')?(?=(?:<\w+>)+\()</Rule>
|
||||
<Rule color="Variable">\w+(?:\'.*\')?(?=(?:<\w+>)+\^?:)</Rule>
|
||||
<Rule color="Tag1"><\w+></Rule>
|
||||
<Rule color="Tag2"><@\w+></Rule>
|
||||
<Rule color="Type">(?!\()\w+(?=:)|\w+$|\w+(?=(?:<\w+>)+\s:=)</Rule>
|
||||
<Rule color="Tag2"><@.*>|^using.*</Rule>
|
||||
<Rule color="Parameter">(?!\()\w+(?=:)</Rule>
|
||||
<Rule color="Class">\w+(?=(?:<\w+>)+\s:=)</Rule>
|
||||
<Rule color="Type">(?<=:)[\w\[\]\?]+</Rule>
|
||||
<Rule color="Punctuation">[()*+,\-.\/:;<=>?[\]^`{|}~]</Rule>
|
||||
</RuleSet>
|
||||
</SyntaxDefinition>
|
||||
|
||||
@@ -102,8 +102,14 @@ namespace FModel.Settings
|
||||
set => SetProperty(ref _overwriteMapping, value);
|
||||
}
|
||||
|
||||
private bool _forceGame;
|
||||
private string _mappingFilePath;
|
||||
public string MappingFilePath
|
||||
{
|
||||
get => _mappingFilePath;
|
||||
set => SetProperty(ref _mappingFilePath, value);
|
||||
}
|
||||
|
||||
private bool _forceGame;
|
||||
public bool ForceGame
|
||||
{
|
||||
get => _forceGame;
|
||||
@@ -111,20 +117,12 @@ namespace FModel.Settings
|
||||
}
|
||||
|
||||
private FGame _gameToForce;
|
||||
|
||||
public FGame GameToForce
|
||||
{
|
||||
get => _gameToForce;
|
||||
set => SetProperty(ref _gameToForce, value);
|
||||
}
|
||||
|
||||
private string _mappingFilePath;
|
||||
public string MappingFilePath
|
||||
{
|
||||
get => _mappingFilePath;
|
||||
set => SetProperty(ref _mappingFilePath, value);
|
||||
}
|
||||
|
||||
private int _lastOpenedSettingTab;
|
||||
public int LastOpenedSettingTab
|
||||
{
|
||||
|
||||
@@ -103,15 +103,10 @@ public class CUE4ParseViewModel : ViewModel
|
||||
}
|
||||
default:
|
||||
{
|
||||
if (UserSettings.Default.ForceGame == true)
|
||||
{
|
||||
Game = UserSettings.Default.GameToForce;
|
||||
}
|
||||
else
|
||||
{
|
||||
Game = gameDirectory.SubstringBeforeLast("\\Content").SubstringAfterLast("\\").ToEnum(FGame.Unknown);
|
||||
}
|
||||
|
||||
Game = UserSettings.Default.ForceGame ?
|
||||
UserSettings.Default.GameToForce :
|
||||
gameDirectory.SubstringBeforeLast("\\Content").SubstringAfterLast("\\").ToEnum(FGame.Unknown);
|
||||
|
||||
var versions = new VersionContainer(UserSettings.Default.OverridedGame[Game], UserSettings.Default.OverridedPlatform,
|
||||
customVersions: UserSettings.Default.OverridedCustomVersions[Game],
|
||||
optionOverrides: UserSettings.Default.OverridedOptions[Game]);
|
||||
|
||||
@@ -83,7 +83,6 @@ public class SettingsViewModel : ViewModel
|
||||
}
|
||||
|
||||
private EDiscordRpc _selectedDiscordRpc;
|
||||
|
||||
public EDiscordRpc SelectedDiscordRpc
|
||||
{
|
||||
get => _selectedDiscordRpc;
|
||||
|
||||
Reference in New Issue
Block a user