Skip to content

Commit

Permalink
Allow a quoted name for serialised objects
Browse files Browse the repository at this point in the history
  • Loading branch information
LogicAndTrick committed Apr 7, 2024
1 parent f05dfbe commit b9f7ac6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sledge.Formats/Sledge.Formats.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
<RepositoryUrl>https://github.com/LogicAndTrick/sledge-formats</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageTags>half-life quake valve liblist vdf</PackageTags>
<PackageReleaseNotes>Add standard Stream constructor to SerialisedObject and MipTexture</PackageReleaseNotes>
<PackageReleaseNotes>Allow a quoted name for serialised objects</PackageReleaseNotes>
<PackageLicenseFile></PackageLicenseFile>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Version>1.2.3</Version>
<Version>1.2.4</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
Expand Down
1 change: 1 addition & 0 deletions Sledge.Formats/Valve/SerialisedObjectFormatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ public static IEnumerable<SerialisedObject> Parse(TextReader reader)
{
throw new ArgumentOutOfRangeException();
}
case TokenType.String when current == null:
case TokenType.Name:
if (!it.MoveNext() || it.Current == null || it.Current.Type != TokenType.Symbol || it.Current.Symbol != Tokens.Symbols.OpenBrace)
{
Expand Down

0 comments on commit b9f7ac6

Please sign in to comment.