Skip to content

Commit 7624e91

Browse files
zeertzjqdlejay
authored andcommitted
vim-patch:1ed2ff7: runtime(m4): Remove m4Type and leftover m4Function in syntax script
closes: vim/vim#18223 vim/vim@1ed2ff7 Co-authored-by: Damien Lejay <[email protected]>
1 parent 6b13f5f commit 7624e91

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

runtime/syntax/m4.vim

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
" 2025 Sep 2 by Vim project: fix a few syntax issues #18192
66
" 2025 Sep 5 by Vim project: introduce m4Disabled region #18200
77
" 2025 Sep 6 by Vim project: remove m4Function heuristics #18211
8+
" 2025 Sep 6 by Vim project: remove m4Type and m4Function #18223
89

910
" quit when a syntax file was already loaded
1011
if !exists("main_syntax")
@@ -57,12 +58,12 @@ syn match m4Constants "\<\(m4_\)\=__file__"
5758
syn match m4Constants "\<\(m4_\)\=__line__"
5859
syn keyword m4Constants divnum sysval m4_divnum m4_sysval
5960
syn region m4Paren matchgroup=m4Delimiter start="(" end=")" contained contains=@m4Top
60-
syn region m4Command matchgroup=m4Function start="\<\(m4_\)\=\(define\|defn\|pushdef\)(" end=")" contains=@m4Top
61+
syn region m4Command matchgroup=m4Define start="\<\(m4_\)\=\(define\|defn\|pushdef\)(" end=")" contains=@m4Top
6162
syn region m4Command matchgroup=m4Preproc start="\<\(m4_\)\=\(include\|sinclude\)("he=e-1 end=")" contains=@m4Top
6263
syn region m4Command matchgroup=m4Statement start="\<\(m4_\)\=\(syscmd\|esyscmd\|ifdef\|ifelse\|indir\|builtin\|shift\|errprint\|m4exit\|changecom\|changequote\|changeword\|m4wrap\|debugfile\|divert\|undivert\)("he=e-1 end=")" contains=@m4Top
6364
syn region m4Command matchgroup=m4Builtin start="\<\(m4_\)\=\(len\|index\|regexp\|substr\|translit\|patsubst\|format\|incr\|decr\|eval\|maketemp\)("he=e-1 end=")" contains=@m4Top
6465
syn keyword m4Statement divert undivert
65-
syn region m4Command matchgroup=m4Type start="\<\(m4_\)\=\(undefine\|popdef\)("he=e-1 end=")" contains=@m4Top
66+
syn region m4Command matchgroup=m4Define start="\<\(m4_\)\=\(undefine\|popdef\)("he=e-1 end=")" contains=@m4Top
6667
syn cluster m4Top contains=m4Comment,m4Constants,m4Special,m4Variable,m4Paren,m4Command,m4Statement,m4Quoted
6768

6869
" Define the default highlighting.
@@ -71,10 +72,10 @@ hi def link m4QuoteDelim Delimiter
7172
hi def link m4Delimiter Delimiter
7273
hi def link m4Comment Comment
7374
hi def link m4Keyword Keyword
75+
hi def link m4Define Define
7476
hi def link m4Special Special
7577
hi def link m4Statement Statement
7678
hi def link m4Preproc PreProc
77-
hi def link m4Type Type
7879
hi def link m4Variable Special
7980
hi def link m4Constants Constant
8081
hi def link m4Builtin Statement

0 commit comments

Comments
 (0)