diff 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
line wrap: on
line diff
--- a/lwasm/parse.c	Sat Nov 28 04:46:09 2009 +0000
+++ b/lwasm/parse.c	Wed Dec 09 03:59:26 2009 +0000
@@ -73,6 +73,10 @@
 symbolagain:
 	if (!isspace(*p))
 	{
+		// if it starts with a comment character, it's not a symbol
+		if (*p == ';' || *p == '*')
+			return;
+
 		// we have a symbol specified here
 		// parse it out and record it for later use
 		for (p2 = p; *p2 && !isspace(*p2) && *p2 != ':'; p2++)