summary refs log tree commit diff
path: root/bin/man1/hilex.1
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-18 20:24:30 -0500
committerJune McEnroe <june@causal.agency>2021-01-18 21:33:21 -0500
commit6c4a03e8fb0d6df2e244177500f4820efc6f7876 (patch)
treee64925d2a5e45f1078b3251b32752138ec4a3476 /bin/man1/hilex.1
parentAdd mdate script (diff)
downloadsrc-6c4a03e8fb0d6df2e244177500f4820efc6f7876.tar.gz
src-6c4a03e8fb0d6df2e244177500f4820efc6f7876.zip
Allow matching lexers using first input line
Using ungetc(3) rather than rewind(3) to support piped input.
Diffstat (limited to '')
-rw-r--r--bin/man1/hilex.19
1 files changed, 6 insertions, 3 deletions
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.