]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0616: filetype: Make syntax highlighting off for MS Makefiles v9.1.0616
authorKen Takata <kentkt@csc.jp>
Thu, 25 Jul 2024 19:07:13 +0000 (21:07 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 25 Jul 2024 19:16:37 +0000 (21:16 +0200)
commiteb4b903c9b238ebcc1d14cfcb207129b4931a33d
tree1ab2c79dc047227500a16ca1aa5a4f92eea066c3
parent242667ae142d9862a7bace82c58cb11c79fdab7a
patch 9.1.0616: filetype: Make syntax highlighting off for MS Makefiles

Problem:  filetype: Make syntax highlighting off for MS Makefiles
Solution: Try to detect MS Makefiles and adjust syntax rules to it.
          (Ken Takata)

Highlighting of variable expansion in Microsoft Makefile can be broken.
E.g.:
https://github.com/vim/vim/blob/2979cfc2627d76a9c09cad46a1647dcd4aa73f5f/src/Make_mvc.mak#L1331

Don't use backslash as escape characters if `make_microsoft` is set.
Also fix that `make_no_comments` was not considered if `make_microsoft`
was set.

Also add description for `make_microsoft` and `make_no_comments` to the
documentation and include a very simple filetype test

closes: #15341

Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Ken Takata <kentkt@csc.jp>
runtime/autoload/dist/ft.vim
runtime/doc/syntax.txt
runtime/filetype.vim
runtime/syntax/make.vim
src/testdir/test_filetype.vim
src/version.c