]> granicus.if.org Git - flex/commitdiff
doc: corrected example in manual, gh#67
authorWill Estes <westes575@gmail.com>
Fri, 18 Mar 2016 19:09:44 +0000 (15:09 -0400)
committerWill Estes <westes575@gmail.com>
Fri, 18 Mar 2016 19:09:44 +0000 (15:09 -0400)
doc/flex.texi

index af639f11d9b01de61a7471e2cc1051f1ff9e5c15..6af69df7134e01d1e3a5961608f0fea8a275e02a 100644 (file)
@@ -408,7 +408,7 @@ A somewhat more complicated example:
 
     "+"|"-"|"*"|"/"   printf( "An operator: %s\n", yytext );
 
-    "{"[\^{}}\n]*"}"     /* eat up one-line comments */
+    "{"[^{}\n]*"}"     /* eat up one-line comments */
 
     [ \t\n]+          /* eat up whitespace */