summary refs log tree commit diff
path: root/bin/man1
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
commitf1ffecec87e5734c50ac4a9cb9ddd93611ea8c47 (patch)
treeabded7c8db904485e44023280ea68244fb6eb1cd /bin/man1
parentAdd mdate script (diff)
downloadsrc-f1ffecec87e5734c50ac4a9cb9ddd93611ea8c47.tar.gz
src-f1ffecec87e5734c50ac4a9cb9ddd93611ea8c47.zip
Allow matching lexers using first input line
Using ungetc(3) rather than rewind(3) to support piped input.
Diffstat (limited to 'bin/man1')
-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.