aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xroff.lex3
1 files changed, 2 insertions, 1 deletions
diff --git a/xroff.lex b/xroff.lex
index 72ab379..9326415 100644
--- a/xroff.lex
+++ b/xroff.lex
@@ -8,9 +8,10 @@
%%
\\ BEGIN(ESC);
+^\n* /* Ignore newlines at beginning of file. */
\n BEGIN(NEW);
\<!\[ BEGIN(RAW);
-\<!--.*--> /* Ignore comment. */
+\<!--.*-->\n* /* Ignore comment. */
^< printf("."); BEGIN(REQ); /* Beginning of file. */
\< printf("\\c\n."); BEGIN(REQ);
. ECHO;