]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1077: included syntax items do not understand contains=TOP v9.1.1077
authorTheodore Dubois <tblodt@icloud.com>
Wed, 5 Feb 2025 22:59:25 +0000 (23:59 +0100)
committerChristian Brabandt <cb@256bit.org>
Wed, 5 Feb 2025 22:59:25 +0000 (23:59 +0100)
commitf50d5364d790619a3b982a3ad3658b5a10daf511
treee8daa2133a34dabbfc4c2ef30f996b81ec495a6d
parent34e1e8de91ff4a8922d454e3147ea425784aa0a0
patch 9.1.1077: included syntax items do not understand contains=TOP

Problem:  Syntax engine interpreted contains=TOP as matching nothing
          inside included files, since :syn-include forces HL_CONTAINED
          on for every included item. After 8.2.2761, interprets
          contains=TOP as contains=@INCLUDED, which is also not correct
          since it doesn't respect exclusions, and doesn't work if there
          is no @INCLUDED cluster.
Solution: revert patch 8.2.2761, instead track groups that have had
          HL_CONTAINED forced, and interpret contains=TOP and
          contains=CONTAINED using this. (Theodore Dubois)

fixes: #11277
closes: #16571

Signed-off-by: Theodore Dubois <tblodt@icloud.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/syntax.c
src/testdir/test_syntax.vim
src/version.c
src/vim.h