Skip to content

Commit

Permalink
Add mimetypes field to Language
Browse files Browse the repository at this point in the history
  • Loading branch information
Blquinn committed Jul 25, 2024
1 parent c4720a8 commit d469c42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<PropertyGroup>
<LangVersion>latest</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<SystemTextJsonVersion>7.0.0</SystemTextJsonVersion>
<SystemTextJsonVersion>8.0.4</SystemTextJsonVersion>
</PropertyGroup>
</Project>
4 changes: 4 additions & 0 deletions src/TextMateSharp.Grammars/GrammarDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ public class Language
public string ConfigurationFile { get; set; }
public LanguageConfiguration Configuration {get; set;}

// May be null
[JsonPropertyName("mimetypes")]
public List<string> MimeTypes { get; set; }

public override string ToString()
{
if (Aliases != null && Aliases.Count > 0)
Expand Down

0 comments on commit d469c42

Please sign in to comment.