| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
| |
Also add missing float case.
|
|
|
|
| |
Still feels pretty messy though.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Also print the value of each expression separated by commas.
|
| |
|
|
|
|
| |
Also unary + and fix precedence of unary -.
|
|
|
|
| |
Missed this because operator(7) just doesn't list it, oddly.
|
| |
|
|
|
|
|
| |
This is kind of a mess and needs to be cleaned up against more careful
reading of the make grammar.
|
|
|
|
| |
This ordering of rules feels much cleaner.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
You can tell I was just copying the HTML code huh.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
hilex is meant to replace hi, based on lex rather than a mess of
overlapping regexps. I want to preserve hi's tagging abilities, but that
will require some amount of parsing/post-processing, which I'm not sure
how to approach yet.
Macro lexing for C still needs work, as I want to match strings and
comments inside macros.
|
| |
|
| |
|
|
|
|
|
|
| |
editline does not render a multi-line PS1 correctly when RPS1 is also
set. To work around this, return only the last line of the cached prompt
to editline, and print the leading lines separately inside setprompt.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, the prompt would be expanded every time editline called the
getprompt callback. I think the code may have been written assuming that
editline only calls getprompt once per prompt, but it may actually call
it many times, for instance every time you type backspace. This results
not only in slower editing from expanding complex prompts repeatedly, it
also consumes more and more stack memory each time getprompt is called.
This can be seen by setting PS1 to some command substitution, typing
many characters at the prompt, then holding backspace and observing
memory usage. Thankfully all this stack memory is freed between prompts
by the stackmark calls around el_gets.
This change causes prompt expansion to always happen in the setprompt
call, as it would when editline is disabled, and a cached copy of the
prompt is saved for getprompt to return every time editline calls it.
Since getprompt is no longer doing expansion, the stackmark calls
surrounding el_gets can be removed.
|
|
|
|
|
|
|
|
|
|
| |
Check if the FreeBSD (and by extension macOS) _el_fn_sh_complete version
of the function exists, which does shell escaping of completed filenames
before _el_fn_complete learned to.
Tab is bound after calling el_set() and el_source() since the default
bindings set tab to something else, and it should always be filename
completion in the shell.
|
| |
|
|
|
|
|
| |
Previously, configure --with-libedit would only fail in the case where
libedit is available but its header file histedit.h is not.
|
|
|
|
| |
From tag 'v0.5.11.2'.
|
|
|
|
| |
Correctly sorts "Kevin L. Mitchell" and "K. Zeilenga, Ed." for example.
|
|
|
|
|
| |
My first perl script! hi doesn't have syntax highlighting for perl, and
I don't think I could sanely implement it, but oh well.
|
|
|
|
|
|
| |
Also fix it to continue reading output, rather than exiting as soon as
the child exits... Except on macOS this still doesn't seem to work
correctly for some reason.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This makes it work even when it's run connected to a pipe, i.e. as the
notify command of catgirl...
|
| |
|
|
|
|
| |
I guess this got lost somewhere, long ago...
|