summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/syntax
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-04-18 08:06:56 +0800
committerGitHub <noreply@github.com>2026-04-18 00:06:56 +0000
commiteb569a695f8a44700da49087a5fa0126ff0df8e1 (patch)
treef5677690325f1a7eff442763b51f2117ca8520fa /runtime/syntax
parent674f4b35abe68d0ceb333de0f7103017d5ce915f (diff)
vim-patch:450895d: runtime(make): fix wrong highlighting with $ inside double quotes (#39177)
fixes: vim/vim#19986 https://github.com/vim/vim/commit/450895d86b7b22fb730c27dbd3dfe089b66c7d5c Co-authored-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'runtime/syntax')
-rw-r--r--runtime/syntax/make.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/syntax/make.vim b/runtime/syntax/make.vim
index 0e973237a5..530b41e0e9 100644
--- a/runtime/syntax/make.vim
+++ b/runtime/syntax/make.vim
@@ -9,6 +9,7 @@
" 2025 Oct 25 by Vim project: update makeTargetinDefine highlighting (#18570)
" 2025 Dec 23 by Vim project: fix too greedy match (#18938)
" 2025 Dec 23 by Vim project: wrong highlight with paranthesis inside quotes (#18818)
+" 2026 Apr 17 by Vim project: wrong highlight $ inside quotes (#19986)
" quit when a syntax file was already loaded
if exists("b:current_syntax")
@@ -41,7 +42,7 @@ endif
syn match makeIdent "\$\$\w*"
syn match makeIdent "\$\$\$\$\w*" containedin=makeDefine
syn match makeIdent "\$[^({]"
-syn match makeIdent "\$\$[^({]" containedin=makeDefine
+syn match makeIdent "\$\$[^({\"']" containedin=makeDefine
if get(b:, 'make_flavor', s:make_flavor) == 'microsoft'
syn region makeIdent start="\$(" end=")" contains=makeStatement,makeIdent,makeDString,makeSString
syn region makeIdent start="\${" end="}" contains=makeStatement,makeIdent,makeDString,makeSString