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 at runtime/autoload/dist/ft.vim:555.
Stash-bisect against the unmodified runtime:
<div class="song-template">x</div> filetype=htmlangular (false positive)
<div class="sing-content">x</div> filetype=htmlangular (false positive)
With the fix applied:
<ng-template let-foo></ng-template> filetype=htmlangular (preserved)
<div><ng-content select="[i]"></ng-content> filetype=htmlangular (preserved)
<div class="song-template">x</div> filetype=html (fixed)
<div class="sing-content">x</div> filetype=html (fixed)
<!DOCTYPE html><html></html> filetype=html (preserved)
Three new asserts added to Test_html_file for the two <ng-…> element openings (positive cases) and the song-template substring (negative case).
Reported in neovim/neovim#39778.
This contribution was prepared with AI assistance.
https://github.com/vim/vim/pull/20246
(2 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
thanks
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()