[vim/vim] Syntax highlighting in sh file, find argument -print0 (Issue #19082)

4 views
Skip to first unread message

er013

unread,
Jan 4, 2026, 11:19:39 AM (2 days ago) Jan 4
to vim/vim, Subscribed
er013 created an issue (vim/vim#19082)

Steps to reproduce

Open following file:

#!/bin/bash

/usr/bin/find /tmp -type l -print0 ; # 0 in -print0 is colored differently, as if its not part of that argment name
/usr/bin/find /mnt -type l -print ;

2026-01-04-180852-import.png (view on web)

Expected behaviour

To have vim know about find -print0 argument and color it consistently.

Version of Vim

2:9.1.1882-1

Environment

Debian testing, kernel 6.16.9+deb14-amd64
Terminals tried: kitty 0.44.0-1, xterm 406-1, screen 5.0.1 on kitty
TERM in these terminals: xterm-kitty, xterm-color, xterm
bash: 5.3-1

Logs and stack traces


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19082@github.com>

Reply all
Reply to author
Forward
0 new messages