changeset 118:c13f36775fe8

Preserve leading whitespace in macro arguments.
author David A. Holland
date Tue, 11 Jun 2013 14:12:27 -0400
parents c46959e2d9ef
children 4f493fb35821
files macro.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/macro.c	Tue Jun 11 14:12:06 2013 -0400
+++ b/macro.c	Tue Jun 11 14:12:27 2013 -0400
@@ -855,6 +855,8 @@
 	    case ES_WANTLPAREN:
 		break;
 	    case ES_NOARG:
+		expand_newarg(es, buf, len);
+		es->state = ES_HAVEARG;
 		break;
 	    case ES_HAVEARG:
 		expand_appendarg(es, buf, len);