comparison lwasm/parse.c @ 253:c537a3a723fc 2.x

Fixed obscure comment detection bug
author lost
date Wed, 09 Dec 2009 03:59:26 +0000
parents 0986834ec7d3
children c7a41b4c89b3
comparison
equal deleted inserted replaced
252:4dc2a10997a6 253:c537a3a723fc
71 71
72 // if we start with a non-space character, it's a symbol 72 // if we start with a non-space character, it's a symbol
73 symbolagain: 73 symbolagain:
74 if (!isspace(*p)) 74 if (!isspace(*p))
75 { 75 {
76 // if it starts with a comment character, it's not a symbol
77 if (*p == ';' || *p == '*')
78 return;
79
76 // we have a symbol specified here 80 // we have a symbol specified here
77 // parse it out and record it for later use 81 // parse it out and record it for later use
78 for (p2 = p; *p2 && !isspace(*p2) && *p2 != ':'; p2++) 82 for (p2 = p; *p2 && !isspace(*p2) && *p2 != ':'; p2++)
79 /* do nothing */ ; 83 /* do nothing */ ;
80 84