From 6c4a03e8fb0d6df2e244177500f4820efc6f7876 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Mon, 18 Jan 2021 20:24:30 -0500 Subject: Allow matching lexers using first input line Using ungetc(3) rather than rewind(3) to support piped input. --- bin/man1/hilex.1 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'bin/man1') diff --git a/bin/man1/hilex.1 b/bin/man1/hilex.1 index ace0b8cf..a151476a 100644 --- a/bin/man1/hilex.1 +++ b/bin/man1/hilex.1 @@ -1,4 +1,4 @@ -.Dd January 15, 2021 +.Dd January 18, 2021 .Dt HILEX 1 .Os . @@ -40,7 +40,8 @@ Set the input lexer. See .Sx Input Lexers . The default input lexer is inferred from -.Ar name . +.Ar name +or the first line of input. . .It Fl n Ar name Set the name used to infer the input lexer. @@ -179,7 +180,9 @@ The language. Inferred for .Pa *.[1-9] -files. +files +and files starting with +.Dq .Dd . . .It Cm text Plain text. -- cgit 1.4.1