Related: #19172 (csh: Support negated if in matchit)
https://github.com/vim/vim/pull/19190
(1 file)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@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.![]()
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.![]()
thanks
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()