]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(haskell): allow spaces in backticked operators in syntax script
authorMirek Kratochvil <exa.exa@gmail.com>
Thu, 20 Nov 2025 20:47:01 +0000 (20:47 +0000)
committerChristian Brabandt <cb@256bit.org>
Thu, 20 Nov 2025 20:47:01 +0000 (20:47 +0000)
commitddb88ab796bfb31267767c206684b3dd7ef0d040
treed02d319c2afbf410c773399441a5bd1ceb398aaf
parentd434f6c2a571e1fda0582986c28a488e1dce8fff
runtime(haskell): allow spaces in backticked operators in syntax script

This formatting (although rare) is actually accepted by GHC, but vim
does not highlight it. This patch adds the simplest possible regex to
support the behavior.

Inconveniently, this might trigger weird formatting on lines that
contain errors, e.g. if the first backtick is removed from:

    a `b` c `d` e

then `c` is going to be marked as an operator, which seems weird but is
valid.

closes: #18776

Signed-off-by: Mirek Kratochvil <exa.exa@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/syntax/haskell.vim