From da8958c330f15e7c93a6df8c75bcde26b9747a12 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 27 Jan 2023 15:22:59 -0700 Subject: [PATCH] comments in preferences-metadata file --- tools/process-metadata | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/process-metadata b/tools/process-metadata index 3c90a40999..d7f48ed4f5 100755 --- a/tools/process-metadata +++ b/tools/process-metadata @@ -7,6 +7,7 @@ $heading = ""; $accumulated = ""; print " +/* This file was generated by tools/process-metadata */ void UIConfiguration::build_metadata () { @@ -14,7 +15,11 @@ UIConfiguration::build_metadata () #define VAR_META(name,...) { char const * _x[] { __VA_ARGS__ }; all_metadata.insert (std::make_pair ((name), PBD::upcase (_x))); }\n\n"; while (<>) { - if (/\[SECTION:/) { + if (/^#/) { + next; + } + + if (/\[SECTION:/) { chop; s/\[SECTION://; s/\]//;