Skip to content

Commit

Permalink
fix a HUGE problem that for a little while the reader was failing whe…
Browse files Browse the repository at this point in the history
…n code contained '__git_main' variables
  • Loading branch information
TeamSPoon committed Dec 8, 2024
1 parent 299867d commit 64cb365
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions prolog/metta_lang/metta_parser.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 64cb365

Please sign in to comment.