vim 9.0 bash syntax highlight broken for large if [ cond ]; then ... else ... fi block
All, After the vim 9.0 update the syntax highlight in my .bashrc is off for: if [ "$EUID" -eq 0 ]; then ## suff else ## sudo stuff fi (generic blocks used in both user/root .bashrc) Where about a dozen alias set for various combinations of systemctl and pacman commands are set. Before this past time looking at the .bashrc, highlight had been fine (don't know if that was 1, 2, 3 months ago), but now it is hosed. Image of the wonky highlight: https://paste.opensuse.org/pastes/89a2016e0483 (good 24 hours) -- David C. Rankin, J.D.,P.E.
Am Mon, Feb 20, 2023 at 10:07:46PM -0600 schrieb David C. Rankin:
After the vim 9.0 update the syntax highlight in my .bashrc is off for:
Maybe this one: https://bugs.archlinux.org/task/77475
On 2/21/23 05:39, Mario Moder wrote:
Am Mon, Feb 20, 2023 at 10:07:46PM -0600 schrieb David C. Rankin:
After the vim 9.0 update the syntax highlight in my .bashrc is off for:
Maybe this one: https://bugs.archlinux.org/task/77475
Short term fix - copy the the latest sh.vim into ~/.vim/syntax from [1] and unzip it. Remove once arch updates vim with this update in it. [1] http://www.drchip.org/astronaut/vim/syntax/sh.vim.gz
On 2/21/23 13:29, Genes Lists wrote:
On 2/21/23 05:39, Mario Moder wrote:
Am Mon, Feb 20, 2023 at 10:07:46PM -0600 schrieb David C. Rankin:
After the vim 9.0 update the syntax highlight in my .bashrc is off for:
Maybe this one: https://bugs.archlinux.org/task/77475
Short term fix - copy the the latest sh.vim into ~/.vim/syntax from [1] and unzip it.
Remove once arch updates vim with this update in it.
An updated version with the diff of sh.vim applied has been released as 9.0.1337-1. Very leet version number, it surely fixes mentioned issue :) Cheers, Levente
On 2/21/23 14:04, Levente Polyak wrote: ..
An updated version with the diff of sh.vim applied has been released as 9.0.1337-1.
Very leet version number, it surely fixes mentioned issue :)
Cheers, Levente
Very leet :) thank you for repairing it so quickly. best gene
On 2/21/23 13:04, Levente Polyak wrote:
On 2/21/23 13:29, Genes Lists wrote:
On 2/21/23 05:39, Mario Moder wrote:
Am Mon, Feb 20, 2023 at 10:07:46PM -0600 schrieb David C. Rankin:
After the vim 9.0 update the syntax highlight in my .bashrc is off for:
Maybe this one: https://bugs.archlinux.org/task/77475
Yep, that'd be the one...
Short term fix - copy the the latest sh.vim into ~/.vim/syntax from [1] and unzip it.
Remove once arch updates vim with this update in it.
Grabbed it.. but
An updated version with the diff of sh.vim applied has been released as 9.0.1337-1.
Very leet version number, it surely fixes mentioned issue :)
Got the update before I had a chance to install!
Cheers, Levente
Thank you Levente! -- David C. Rankin, J.D.,P.E.
participants (4)
-
David C. Rankin
-
Genes Lists
-
Levente Polyak
-
Mario Moder