indent: unindent after '=' continuation lines
Signed-off-by: Amelia Clarke <selene@perilune.dev>
autoload: make file extension check case sensitive
Signed-off-by: Amelia Clarke <selene@perilune.dev>
syntax/hare: replace skipempty with skipnl
This makes :syn-nextgroup only search for matches within the same
paragraph, slightly speeding up syntax highlighting. Using skipempty
does not provide a significant benefit in practice, and mostly leads to
minor annoyances with the syntax highlighting of later lines changing
while code is still being typed (mainly with function declarations).
Signed-off-by: Amelia Clarke <selene@perilune.dev>
Use vimscript method call syntax in fewer places
Signed-off-by: Amelia Clarke <selene@perilune.dev>
doc: slightly restructure back into sections
Signed-off-by: Amelia Clarke <selene@perilune.dev>
doc: rewrite documentation for additional clarity
This commit also deletes the tags file for the included documentation,
as it isn't strictly necessary. It can be regenerated using :helptags in
your local install.
Signed-off-by: Amelia Clarke <selene@perilune.dev>
ftdetect: improve haredoc(5) filetype detection
Signed-off-by: Amelia Clarke <selene@perilune.dev>
syntax/hare: match parens in builtin expressions
Signed-off-by: Amelia Clarke <selene@perilune.dev>
syntax/hare: match floats of the form 1e-1
This commit highlights floating-point literals with a negative exponent
but no suffix. This is technically an invalid form according to the
specification, but harec still accepts it.
I would prefer not to deviate from the spec, but for the moment I think
it makes sense to highlight this form, at least until either harec stops
accepting it or the spec is updated to match.
Signed-off-by: Amelia Clarke <selene@perilune.dev>
syntax/hare: highlight function declarations
Signed-off-by: Amelia Clarke <selene@perilune.dev>