Syntax (sh) - inconsistent coloring in nested loops

Janis Papanagnou <[email protected]>
Newsgroups gmane.editors.vim.devel
Message-ID <AS2SPRMB0054C56EC06607448A623C09F3DB2@AS2SPRMB0054.eurprd05.prod.outlook.com>
With these nested loops the numbers are highlighted in different ways;
almost all numbers are _violet_ with the exception that the first "-1" has
the minus-sign in _white_, and the second "-1" is all _yellow_ (sign and
digit).

for a in -1 0 1 3 5 6
do  
    for n in -1 0 1 3 6 
    do
        :
    done
done

This is the case with syntax=sh.
If changing that to syntax=bash the numbers and digits are all correctly
displayed.

I think that 'sh' deserves the same correct syntax highlighting.  :-)

Observed in
$ vi --version   
VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Jul 13 2026 17:17:48)
Included patches: 1-16, 647, 678, 697
Modified by [email protected]

Janis

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/AS2SPRMB0054C56EC06607448A623C09F3DB2%40AS2SPRMB0054.eurprd05.prod.outlook.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.