From 849e394f6bad6bdae26715605e7e5922c24845f2 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Fri, 11 Apr 1997 10:33:12 +0000 Subject: [PATCH] Add ``%{'' and ``%}'' to one of the examples so that you can actually cut-n-paste the example and have it actually lex and compile. --- usr.bin/lex/lex.1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.bin/lex/lex.1 b/usr.bin/lex/lex.1 index 065aee20a6b3..16025e9abe68 100644 --- a/usr.bin/lex/lex.1 +++ b/usr.bin/lex/lex.1 @@ -136,7 +136,9 @@ The "%%" marks the beginning of the rules. Here's another simple example: .nf + %{ int num_lines = 0, num_chars = 0; + %} %% \\n ++num_lines; ++num_chars;