mirror of
https://github.com/4sval/FModel.git
synced 2026-06-21 07:20:05 -05:00
reworked verse highlighter
This commit is contained in:
parent
6bc02bfb13
commit
97b4b00766
|
|
@ -1 +1 @@
|
|||
Subproject commit 0a98d821d8d0c93ead31bec576e27313efb2f9a5
|
||||
Subproject commit f3ed0ee2a8722d8709b77f050aaf9950ebf689e3
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ Follow [our documentation](https://fmodel.app/docs#installation)
|
|||
|
||||
## Authors
|
||||
|
||||
- [@Asval](https://github.com/iAmAsval)
|
||||
- [@Asval](https://github.com/4sval)
|
||||
- [@Fabian](https://github.com/FabianFG)
|
||||
- [@amr](https://github.com/Amrsatrio)
|
||||
- [@GMatrix](https://github.com/GMatrixGames)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user