Skip to content

Commit

Permalink
Add basic support for the various new text entries in the re-release
Browse files Browse the repository at this point in the history
Should address most of #1709
  • Loading branch information
sirjuddington committed Dec 23, 2024
1 parent 1828a4a commit 8264737
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 2 deletions.
52 changes: 50 additions & 2 deletions dist/res/config/entry_types/text.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,8 @@ misctext : text
shaders : text
{
name = "OpenGL Shaders";
match_ext = "fp", "fs", "ps", "vp";
name = "Shaders";
match_ext = "fp", "fs", "ps", "vp", "shader", "inc", "compute";
icon = "code";
}
Expand Down Expand Up @@ -652,6 +652,54 @@ umapinfo : text
text_language = "umapinfo";
}
json : text
{
name = "JSON";
match_ext = "json";
text_language = "json";
}
gameconf : text
{
name = "Game Configuration";
match_name = "gameconf";
text_language = "json";
}
sbardef : text
{
name = "Statusbar Definition";
match_name = "sbardef";
text_language = "json";
}
intermission : text
{
name = "Interlevel Definition";
match_name = "xwinter0", "xwinter1";
text_language = "json";
}
finale : text
{
name = "Finale Definition";
match_name = "xfinale1";
text_language = "json";
}
trakinfo : text
{
name = "Music Track Info";
match_name = "trakinfo";
text_language = "json";
}
kfont : text
{
name = "KEX Font";
match_ext = "kfont";
}
txt : text
{
name = "Text";
Expand Down
14 changes: 14 additions & 0 deletions dist/res/config/languages/0_base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,17 @@ lua
false, true, nil
}
}

json
{
name = "JSON";
comment_line = "//";
case_sensitive = true;
block_begin = "{";
block_end = "}";

keywords =
{
true, false, null
}
}

0 comments on commit 8264737

Please sign in to comment.