SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
SPDX-FileCopyrightText: 2019-2020 Giovanni Mascellani <gio@debian.org>
SPDX-FileCopyrightText: 2021 Samuel Tyler <samuel@samuelt.me>

SPDX-License-Identifier: BSD-2-Clause

Comments are unsupported by our flex.

diff --git scan.l scan.l
index 18d0de8..c251a5e 100644
--- flex-d160f0247ba1611aa59d28f027d6292ba24abb50/scan.l
+++ flex-d160f0247ba1611aa59d28f027d6292ba24abb50/scan.l
@@ -335,8 +335,8 @@ LEXOPT		[aceknopr]
 
 
 <SECT2PROLOG>{
-	^"%{".*	++bracelevel; yyless( 2 );	/* eat only %{ */
-	^"%}".*	--bracelevel; yyless( 2 );	/* eat only %} */
+	^"%{".*	++bracelevel; yyless( 2 );
+	^"%}".*	--bracelevel; yyless( 2 );
 
 	^{WS}.*	ACTION_ECHO;	/* indented code in prolog */
 
@@ -481,11 +481,11 @@ LEXOPT		[aceknopr]
 				}
 			}
 
+	"{"{NAME}"}"[[:space:]]?	 {
     /* Check for :space: at the end of the rule so we don't
      * wrap the expanded regex in '(' ')' -- breaking trailing
      * context.
      */
-	"{"{NAME}"}"[[:space:]]?	 {
 			register Char *nmdefptr;
             int end_is_ws, end_ch;
             
