Mercurial > ~dholland > hg > tradcpp > index.cgi
diff macro.c @ 129:2e1496dd96c4
Don't recognize macro argument parens or commas within quotes.
author | David A. Holland |
---|---|
date | Sun, 16 Jun 2013 22:06:57 -0400 (2013-06-17) |
parents | 1cda505ddc78 |
children | 7ab3d0c09cd8 |
line wrap: on
line diff
--- a/macro.c Fri Jun 14 20:59:24 2013 -0400 +++ b/macro.c Sun Jun 16 22:06:57 2013 -0400 @@ -1108,21 +1108,21 @@ continue; } - if (buf[0] == '(') { + if (!inquote && buf[0] == '(') { expand_got_lparen(es, p, buf, 1); buf++; len--; continue; } - if (buf[0] == ')') { + if (!inquote && buf[0] == ')') { expand_got_rparen(es, p, buf, 1); buf++; len--; continue; } - if (buf[0] == ',') { + if (!inquote && buf[0] == ',') { expand_got_comma(es, p, buf, 1); buf++; len--;