From 64cb365e22ca98399c996609190f5f142e4d74a8 Mon Sep 17 00:00:00 2001 From: logicmoo Date: Sat, 7 Dec 2024 23:18:26 -0800 Subject: [PATCH] fix a HUGE problem that for a little while the reader was failing when code contained '__git_main' variables --- prolog/metta_lang/metta_parser.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prolog/metta_lang/metta_parser.pl b/prolog/metta_lang/metta_parser.pl index b72898227f..073ec8f5c1 100644 --- a/prolog/metta_lang/metta_parser.pl +++ b/prolog/metta_lang/metta_parser.pl @@ -231,6 +231,9 @@ svar_fixname('block'(Name), UP) :- % Handle 'block' variables. !, svar_fixvarname(Name, UP). + +svar_fixname('_', '_') :- !. + svar_fixname(SVAR, SVARO) :- % If the name is already valid, return it as is. ok_var_name(SVAR), !, SVARO = SVAR.