On So, 25 Sep 2022, Dave McCooey wrote:
> Hello, > > There is a problem with syntax highlighting in "rc" files (e.g. _vimrc). > > I am using the following commands to highlight tabs: > > :hi Tab ctermbg=235 > autocmd BufWinEnter * syntax match Tab /\t/ containedin=ALL > > This works as expected in file types like .c, .html, .js, and .java. > > In "rc" files, however, a tab is not highlighted when it is preceded > by a string consisting entirely of decimal digits (e.g. 55, 123, 9000). > Adding spaces between the number string and the tab does not > change the behavior - the tab is still not highlighted. > > The ftplugin files are the default ones included in the distribution. > > This problem is seen with vim version 8.2 (included patches 1-4372) > on Cygwin, and also with version 8.2 (included patches 1-2072) on Linux. > > I have version 7.3 running on a Mac that does not have the problem. Can you please provide a reproducible example? Also, it is not clear what kind of an rc file you are using (and there are various rc filetypes available, like muttrc and fetchmailrc, so I need something reproducible). I tried with something silly like foobar.rc and do not see the problem in there using: vim --clean -c ':hi Tab ctermbg=235' --cmd 'autocmd BufWinEnter * syntax match Tab /\t/ containedin=ALL' foobar.rc Best, Christian -- Debian Tipp #11: Bleiben Sie auf dem laufenden - lesen sie die wöchentlichen Debian-Nachrichten! Lesen Sie sie im Web unter http://www.debian.org/News/weekly/, oder abonieren Sie [email protected]. -- -- 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 on the web visit https://groups.google.com/d/msgid/vim_dev/20220925153728.GA1155360%40256bit.org.
