[vim/vim] runtime(csh): Update ftplugin, improve matchit behaviour (PR #19190)

1 view
Skip to first unread message

dkearns

unread,
Jan 16, 2026, 8:24:42 AMJan 16
to vim/vim, Subscribed
  • Allow for an unparenthesised expression argument to the 'if',
    'if-then', and 'while' commands. This is undocumented, and probably
    unintended, behaviour but is frequently seen in the wild.
  • Allow for a continued-line expression argument to the 'if-then'
    command.

Related: #19172 (csh: Support negated if in matchit)


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19190

Commit Summary

  • 233eefd runtime(csh): Update ftplugin, improve matchit behaviour

File Changes

(1 file)

Patch Links:


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

dkearns

unread,
Jan 17, 2026, 4:07:23 AMJan 17
to vim/vim, Subscribed
dkearns left a comment (vim/vim#19190)

@simaoafonso-pwt, this should match most reasonable examples.

if commands with a tail comment or command ending in "then" will still, erroneously, get matched up as an if-then command. The easiest way to solve that is to rely on syntax ID testing but the syntax files aren't really up to the task yet, so I'll leave it until I get a chance to update them.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19190/c3762929729@github.com>

Simão Afonso @ Powertools Tech

unread,
Jan 19, 2026, 6:59:46 AMJan 19
to vim/vim, Subscribed
simaoafonso-pwt left a comment (vim/vim#19190)

Confirmed, this kind of weirdness works correctly:

if ("$variable" != "<unassigned>") then
    if (("$variable" != "V1") && ("$variable" != "V2") && \
        ("$variable" != "V3") && ("$variable" != "V4")) then
        echo "ERROR: Secret error message"
        exit 1
    else
        setenv VARIABLE_SECRET "$variable"
    endif
endif

Even Github's highlight chokes on this.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19190/c3767974166@github.com>

Christian Brabandt

unread,
Jan 23, 2026, 2:07:19 PMJan 23
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#19190)

thanks


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19190/c3791855913@github.com>

Christian Brabandt

unread,
Jan 23, 2026, 2:09:16 PMJan 23
to vim/vim, Subscribed

Closed #19190 via 09a4805.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19190/issue_event/22250640336@github.com>

Reply all
Reply to author
Forward
0 new messages