Skip to content

Commit 668e9f2

Browse files
committed
runtime(filetype): don't detect string interpolation as angular
fixes: #16375 Signed-off-by: Christian Brabandt <[email protected]>
1 parent ad40987 commit 668e9f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/autoload/dist/ft.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ vim9script
33
# Vim functions for file type detection
44
#
55
# Maintainer: The Vim Project <https://github.com/vim/vim>
6-
# Last Change: 2025 Jan 08
6+
# Last Change: 2025 Jan 11
77
# Former Maintainer: Bram Moolenaar <[email protected]>
88

99
# These functions are moved here from runtime/filetype.vim to make startup
@@ -437,7 +437,7 @@ export def FThtml()
437437

438438
while n < 40 && n <= line("$")
439439
# Check for Angular
440-
if getline(n) =~ '@\(if\|for\|defer\|switch\)\|\*\(ngIf\|ngFor\|ngSwitch\|ngTemplateOutlet\)\|ng-template\|ng-content\|{{.*}}'
440+
if getline(n) =~ '@\(if\|for\|defer\|switch\)\|\*\(ngIf\|ngFor\|ngSwitch\|ngTemplateOutlet\)\|ng-template\|ng-content'
441441
setf htmlangular
442442
return
443443
endif

0 commit comments

Comments
 (0)