diff options
author | June McEnroe <june@causal.agency> | 2021-01-18 20:24:30 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-01-18 21:33:21 -0500 |
commit | 6c4a03e8fb0d6df2e244177500f4820efc6f7876 (patch) | |
tree | e64925d2a5e45f1078b3251b32752138ec4a3476 /bin/man1 | |
parent | Add mdate script (diff) | |
download | src-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 'bin/man1')
-rw-r--r-- | bin/man1/hilex.1 | 9 |
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. |