Small peephole fix
[fw/sdcc] / src / SDCCpeeph.c
index fb207ff21767cc4380c8485e6882b243b3b1cc30..37b8634bcba38368d5878972564024889f53c83e 100644 (file)
@@ -531,12 +531,13 @@ bindVar (int key, char **s, hTab ** vtab)
 
   /* first get the value of the variable */
   vvx = *s;
-  /* the value is ended by a ',' or space or newline or null */
+  /* the value is ended by a ',' or space or newline or null or ) */
   while (*vvx &&
         *vvx != ',' &&
         !isspace (*vvx) &&
         *vvx != '\n' &&
-        *vvx != ':')
+        *vvx != ':' &&
+        *vvx != ')')
     {
       char ubb = 0;
       /* if we find a '(' then we need to balance it */