[vim/vim] Fix makefile syntax highlighting of macros in target lists (PR #20947)
Boobies (Vim Github Repository) <[email protected]> Tue, 04 Aug 2026 23:41:25 -0700
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <vim/vim/pull/[email protected]> |
----==_mimepart_6a72db158bbd7_bb11807672fb
Content-Type: text/plain; charset="UTF-8"
Without this patch, a prerequisite list with no targets such as `$(FOO):` would get highlighted correctly while `$(FOO): bar` would not. This is a fix for this issue.
You can view, comment on, or merge this pull request online at:
https://github.com/vim/vim/pull/20947
-- Commit Summary --
* runtime(c): compound literal braces are highlighted as errors
* Regenerate screendumps
* runtime(make): variables in make target lists use wrong highlighting
-- File Changes --
M runtime/syntax/c.vim (13)
M runtime/syntax/make.vim (17)
A runtime/syntax/testdir/dumps/c_initializer_00.dump (20)
M runtime/syntax/testdir/dumps/make_01_00.dump (18)
A runtime/syntax/testdir/input/c_initializer.c (18)
M runtime/syntax/testdir/input/make_01.mak (4)
A runtime/syntax/testdir/input/setup/make_01.vim (1)
-- Patch Links --
https://github.com/vim/vim/pull/20947.patch
https://github.com/vim/vim/pull/20947.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/pull/20947
You are receiving this because you are subscribed to this thread.
Message ID: <vim/vim/pull/[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 visit https://groups.google.com/d/msgid/vim_dev/vim/vim/pull/20947%40github.com.
----==_mimepart_6a72db158bbd7_bb11807672fb
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<p dir=3D"auto">Without this patch, a prerequisite list with no targets suc=
h as <code class=3D"notranslate">$(FOO):</code> would get highlighted corre=
ctly while <code class=3D"notranslate">$(FOO): bar</code> would not. This i=
s a fix for this issue.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href=3D'https://github.com/vim/vim/pull/20947'>https://gi=
thub.com/vim/vim/pull/20947</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href=3D"https://github.com/vim/vim/pull/20947/commits/5b5304d6c720=
7591d64f4a727758cc11d2cb95af" class=3D"commit-link">5b5304d</a> runtime(c)=
: compound literal braces are highlighted as errors</li>
<li><a href=3D"https://github.com/vim/vim/pull/20947/commits/a02119cb3e0a=
44631650644227571c24c243dba2" class=3D"commit-link">a02119c</a> Regenerate=
screendumps</li>
<li><a href=3D"https://github.com/vim/vim/pull/20947/commits/d3baa99d9faf=
51d32e2a805b4c2205c01626d57e" class=3D"commit-link">d3baa99</a> runtime(ma=
ke): variables in make target lists use wrong highlighting</li>
</ul>
<h4 style=3D"display: inline-block">File Changes </h4> <p style=3D"display:=
inline-block">(<a href=3D"https://github.com/vim/vim/pull/20947/files">7&n=
bsp;files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href=3D"https://github.com/vim/vim/pull/20947/files#diff-da4ec08f199=
df22e4e8df5fe30ff1ec321902096fb07c98475fca09d1676a06a">runtime/syntax/c.vim=
</a>
(13)
</li>
<li>
<strong>M</strong>
<a href=3D"https://github.com/vim/vim/pull/20947/files#diff-450b8b38b9e=
25ba0f64e6a055c9be89aad64966d9d00357a5300af4a5e3cdf29">runtime/syntax/make.=
vim</a>
(17)
</li>
<li>
<strong>A</strong>
<a href=3D"https://github.com/vim/vim/pull/20947/files#diff-558271b8a34=
32f99b7c0520ce251e7c6ccd951139408f4dcc0bc4c1d0a9e3928">runtime/syntax/testd=
ir/dumps/c_initializer_00.dump</a>
(20)
</li>
<li>
<strong>M</strong>
<a href=3D"https://github.com/vim/vim/pull/20947/files#diff-c35420f199f=
f326c34821a118572b18e67b6b3cada54b04d10eecc6af6157dc1">runtime/syntax/testd=
ir/dumps/make_01_00.dump</a>
(18)
</li>
<li>
<strong>A</strong>
<a href=3D"https://github.com/vim/vim/pull/20947/files#diff-2c5d5a80bf9=
9ab407a24b504d26f8be9c787a87790e1df6b608d677e7cd3d313">runtime/syntax/testd=
ir/input/c_initializer.c</a>
(18)
</li>
<li>
<strong>M</strong>
<a href=3D"https://github.com/vim/vim/pull/20947/files#diff-a409252cb83=
bb77e0f7ee195901353d09b3859d0447c8cb1709ff70322562d04">runtime/syntax/testd=
ir/input/make_01.mak</a>
(4)
</li>
<li>
<strong>A</strong>
<a href=3D"https://github.com/vim/vim/pull/20947/files#diff-dff6b80f00a=
f5cb0b4a9f9c616024decbe93a9e4f5b2b6fc58318d67fc2b37c8">runtime/syntax/testd=
ir/input/setup/make_01.vim</a>
(1)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href=3D'https://github.com/vim/vim/pull/20947.patch'>https://githu=
b.com/vim/vim/pull/20947.patch</a></li>
<li><a href=3D'https://github.com/vim/vim/pull/20947.diff'>https://github=
.com/vim/vim/pull/20947.diff</a></li>
</ul>
<p style=3D"font-size:small;-webkit-text-size-adjust:none;color:#666;">&mda=
sh;<br />Reply to this email directly, <a href=3D"https://github.com/vim/vi=
m/pull/20947">view it on GitHub</a>, or <a href=3D"https://github.com/notif=
ications/unsubscribe-auth/ACY5DGFBNZ6KR7L5R6BQ3QT5ILJJLAVCNFSNUABEKJSXA33TN=
F2G64TZHM2DAOJZG42DQMR3JFZXG5LFHM2TANRYGEYTINBYGCQXMAQ">unsubscribe</a>.<br=
/>Triage notifications, keep track of coding agent tasks and review pull r=
equests on the go with GitHub Mobile for <a href=3D"https://github.com/noti=
fications/mobile/ios/ACY5DGGX35W6XNM2FRIQ3IT5ILJJLA5CNFSNUABEM5UWIORPF5TWS5=
BNNB2WEL2QOVWGYUTFOF2WK43UF42DEMBZHAYTSMRWGCTHEZLBONXW5KTTOVRHGY3SNFRGKZFFM=
V3GK3TUVJTG633UMVZF62LPOM">iOS</a> and <a href=3D"https://github.com/notifi=
cations/mobile/android/ACY5DGGQACPFLTBPO32532D5ILJJLA5CNFSNUABEM5UWIORPF5TW=
S5BNNB2WEL2QOVWGYUTFOF2WK43UF42DEMBZHAYTSMRWGCTHEZLBONXW5KTTOVRHGY3SNFRGKZF=
FMV3GK3TUVZTG633UMVZF6YLOMRZG62LE">Android</a>. Download it today!
<br />You are receiving this because you are subscribed to this thread.<img=
src=3D"https://github.com/notifications/beacon/ACY5DGEV4VIZAKUU6P7TOE35ILJ=
JLBFCNFSM6AAAAAC44CREK2WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHQAA=
AAAEXBKSRQUZZGKYLTN5XKU43VMJZWG4TJMJSWI.gif" height=3D"1" width=3D"1" alt=
=3D"" /><span style=3D"color: transparent; font-size: 0; display: none; vis=
ibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-wid=
th: 0; max-height: 0; mso-hide: all">Message ID: <span><vim/vim/pull/209=
47</span><span>@</span><span>github</span><span>.</span><span>com></span=
></span></p>
<script type=3D"application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/vim/vim/pull/20947",
"url": "https://github.com/vim/vim/pull/20947",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>
<p></p>
-- <br />
-- <br />
You received this message from the "vim_dev" maillist.<br />
Do not top-post! Type your reply below the text you are replying to.<br />
For more information, visit <a href=3D"http://www.vim.org/maillist.php">htt=
p://www.vim.org/maillist.php</a><br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;vim_dev" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">vim_dev+uns=
[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
vim_dev/vim/vim/pull/20947%40github.com?utm_medium=3Demail&utm_source=3Dfoo=
ter">https://groups.google.com/d/msgid/vim_dev/vim/vim/pull/20947%40github.=
com</a>.<br />
----==_mimepart_6a72db158bbd7_bb11807672fb--