]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0500: filetype: some html files wrongly recognized as htmlangular v9.2.0500
authortruffle <truffleagent@gmail.com>
Mon, 18 May 2026 20:46:24 +0000 (20:46 +0000)
committerChristian Brabandt <cb@256bit.org>
Mon, 18 May 2026 20:46:24 +0000 (20:46 +0000)
commit354ab1a69efbe5f84cd7225bc3945db3f2cec5c4
tree81cf6be8339da298776bbe4ccf75eb056dc8e0b1
parent6daa721dc002437a91323f05d04ac2165e854d7b
patch 9.2.0500: filetype: some html files wrongly recognized as htmlangular

Problem:  filetype: some html files are wrongly recognized as htmlangular
Solution: Use the \< atom to anchor ng-template and ng-content to start
          of word (truffle)

Prevent false-positive htmlangular detection on words containing
'ng-template' or 'ng-content' as a substring (e.g. 'song-template',
'sing-content'). Anchor both branches with \< to require a word start,
matching the \<DTD\s\+XHTML\s idiom used five lines below.

related: neovim/neovim#39778.
closes:  #20246

Signed-off-by: truffle <truffleagent@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/dist/ft.vim
src/testdir/test_filetype.vim
src/version.c