From 82647374f43c8ca5fcff2f5f9d8e8045175dedd1 Mon Sep 17 00:00:00 2001 From: Simon Judd Date: Tue, 24 Dec 2024 00:09:47 +1030 Subject: [PATCH] Add basic support for the various new text entries in the re-release Should address most of #1709 --- dist/res/config/entry_types/text.cfg | 52 ++++++++++++++++++++++++++-- dist/res/config/languages/0_base.txt | 14 ++++++++ 2 files changed, 64 insertions(+), 2 deletions(-) diff --git a/dist/res/config/entry_types/text.cfg b/dist/res/config/entry_types/text.cfg index 60e3b29c1..be2dbde50 100644 --- a/dist/res/config/entry_types/text.cfg +++ b/dist/res/config/entry_types/text.cfg @@ -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"; } @@ -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"; diff --git a/dist/res/config/languages/0_base.txt b/dist/res/config/languages/0_base.txt index 6fbcac417..0642d0f65 100644 --- a/dist/res/config/languages/0_base.txt +++ b/dist/res/config/languages/0_base.txt @@ -49,3 +49,17 @@ lua false, true, nil } } + +json +{ + name = "JSON"; + comment_line = "//"; + case_sensitive = true; + block_begin = "{"; + block_end = "}"; + + keywords = + { + true, false, null + } +}