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

closes: vim/vim#20801

https://github.com/vim/vim/commit/70d55cd5162b03e5a058907b30bc96d544fc0594

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
co-authored by Sam Williams
parent 635acc7dc8
commit a8626466e8
+1 -1
View File
@@ -46,7 +46,7 @@ syn cluster m4Top add=m4Quoted
" they simply prevent any macros from being expanded, while the text remains
" in the output. This region therefore disables any other matches.
" 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:
" Name tokens consist of the longest possible sequence of letters, digits,