Problem: Makefile syntax highlighting incorrectly ends function calls
when encountering ')' inside double or single quoted strings,
causing incorrect highlighting for the remainder of the line.
Solution: Add makeDString and makeSString to the contains list for
makeIdent regions. This allows strings to be recognized inside
variable references and function calls.
Fixes: #18687
I have created this commit message following the style used in
recent commits. Feel free to let me know if that has to be
changed, and I will do so.
https://github.com/vim/vim/pull/18818
(1 file)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Is this correct? It looks like makeIdent can contain makeDstring, while at the same time makeDstring contains makeIdent. I don't think this works as expected?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Hi @chrisbra
It looks like makeIdent can contain makeDstring, while at the same time makeDstring contains makeIdent.
Umm, why not..? This recursive loop should not be a problem. makeIdent contains itself too:
syn region makeIdent start=<...> end=<...> contains=makeStatement,makeIdent
For testing:
Before this patch:
Screenshot.2025-11-27.221025.png (view on web)
After this patch:
Screenshot.2025-11-27.220948.png (view on web)
Feel free to let me know if I am missing something
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
I see. I think this warrants a syntax test, don't you think?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Sure, will add a test as well.
—
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.
You are receiving this because you are subscribed to this thread.![]()
I included it with a syntax test
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()