Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Fix for macro #1135

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/load.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8134,7 +8134,7 @@ int GldLoader::process_macro(char *line, int size, char *_filename, int linenum)
else if ( strncmp(line, "#for",4) == 0 )
{
char var[64], range[1024];
if ( sscanf(line+4,"%s in %[^\n]",var,range) == 2 )
if ( sscanf(line+4,"%s in%*[ \t\"]%[^\n\"]",var,range) == 2 )
{
strcpy(line,"\n");
return for_open(var,range) ? TRUE : FALSE;
Expand Down Expand Up @@ -8749,4 +8749,4 @@ void GldLoader::sublime_syntax(void)
output_message(" - match: $\\n?");
output_message(" pop: true");
output_message("");
}
}