A "#" does start a comment, not a label.

This commit is contained in:
Clifford Wolf 2015-04-16 18:13:41 +02:00
parent 31755ed1cf
commit cfdc9fc50e
1 changed files with 3 additions and 0 deletions

View File

@ -698,6 +698,9 @@ static void handle_label(std::string &command, bool &from_to_active, const std::
while (pos < GetSize(command) && (command[pos] == ' ' || command[pos] == '\t'))
pos++;
if (pos < GetSize(command) && command[pos] == '#')
return;
while (pos < GetSize(command) && command[pos] != ' ' && command[pos] != '\t' && command[pos] != '\r' && command[pos] != '\n')
label += command[pos++];