]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(syntax): unlet b:filetype_in_cpp_family for cpp & squirrel
authorlaburnumT <laburnumtec@gmail.com>
Fri, 8 Dec 2023 20:27:03 +0000 (21:27 +0100)
committerChristian Brabandt <cb@256bit.org>
Fri, 8 Dec 2023 20:28:44 +0000 (21:28 +0100)
commitff0baca86523f1e8c6ea593ec0ef2f9860f001d0
treef31a0e36913fe05fb6ddcac5041477a8f8b24428
parente06f2b498ccca921f34a1bec4464f042a5a2cabd
runtime(syntax): unlet b:filetype_in_cpp_family for cpp & squirrel

Update runtime/syntax/cpp.vim and runtime/syntax/squirrel.vim to unlet
b:filetype_in_cpp_family as it remains set even after updating the ft of
a file manually or through a modeline, not allowing c specific keywords
to be highlighted.

Since the variable b:filetype_in_cpp_family is only used by the c.vim
syntax script, unlet it directly after sourcing the c.vim runtime file
instead of at the end of the script.

Also update the last Change Header for both files.

closes: #13650

Signed-off-by: laburnumT <laburnumtec@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/syntax/cpp.vim
runtime/syntax/squirrel.vim