diff directive.c @ 83:3e505c16b0b0

Accept # by itself, including with a comment after it.
author David A. Holland
date Mon, 10 Jun 2013 21:33:31 -0400
parents 05a94332f08b
children 594495750d84
line wrap: on
line diff
--- a/directive.c	Mon Jun 10 21:32:47 2013 -0400
+++ b/directive.c	Mon Jun 10 21:33:31 2013 -0400
@@ -490,6 +490,12 @@
 			return;
 		}
 	}
+	/* ugh. allow # by itself, including with a comment after it */
+	uncomment(line);
+	if (line[0] == '\0') {
+		return;
+	}
+
 	skip = strcspn(line, ws);
 	complain(p, "Unknown directive #%.*s", (int)skip, line);
 	complain_fail();