vim-patch:70d55cd: runtime(m4): Prevent the m4Disabled region from nesting within itself. (#41037)

closes: vim/vim#20801

70d55cd516

Co-authored-by: Sam Williams <sam@badcow.co>
This commit is contained in:
zeertzjq 2026-07-29 09:14:14 +08:00 committed by GitHub
parent 635acc7dc8
commit a8626466e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,7 +46,7 @@ syn cluster m4Top add=m4Quoted
" they simply prevent any macros from being expanded, while the text remains " they simply prevent any macros from being expanded, while the text remains
" in the output. This region therefore disables any other matches. " in the output. This region therefore disables any other matches.
" Comments themselves are disabled when quoted. " Comments themselves are disabled when quoted.
syn region m4Disabled start=+#+ end=+$+ containedin=ALLBUT,m4Quoted,m4ParamCount syn region m4Disabled start=+#+ end=+$+ containedin=ALLBUT,m4Quoted,m4ParamCount,m4Disabled
" Macros in M4: " Macros in M4:
" Name tokens consist of the longest possible sequence of letters, digits, " Name tokens consist of the longest possible sequence of letters, digits,