added note to Lang.zig and updated lang script to not process the comment

This commit is contained in:
Moritz Reinel committed 2024-10-12 22:07:29 +02:00
1 parent 47ebe641d9
commit fe36879dfb
2 files changed
+8 -1

No files matched your search

+3 -1
View File
@@ -40,7 +40,9 @@ fi
declare -a LANG_STRINGS
while read -r line; do
if [[ "$line" =~ ^([^:]*): ]]; then
if [[ -z "$line" || "$line" =~ ^\/\/ ]]; then
:
elif [[ "$line" =~ ^([^:]*): ]]; then
LANG_STRINGS+=("${BASH_REMATCH[1]}")
else
echo "ERROR: Line '$line' in file '$ZIG_LANG_FILE' does not contain an entry of the pattern '<lang_item>: ...'." >&2