From: Christian Brabandt Date: Sat, 11 Jan 2025 08:19:12 +0000 (+0100) Subject: runtime(filetype): don't detect string interpolation as angular X-Git-Tag: v9.1.1002~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=668e9f24037fc7c362ffdf5fc1d5c5b1a8b0e855;p=thirdparty%2Fvim.git runtime(filetype): don't detect string interpolation as angular fixes: #16375 Signed-off-by: Christian Brabandt --- diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim index f1e6ee272b..47b2fede17 100644 --- a/runtime/autoload/dist/ft.vim +++ b/runtime/autoload/dist/ft.vim @@ -3,7 +3,7 @@ vim9script # Vim functions for file type detection # # Maintainer: The Vim Project -# Last Change: 2025 Jan 08 +# Last Change: 2025 Jan 11 # Former Maintainer: Bram Moolenaar # These functions are moved here from runtime/filetype.vim to make startup @@ -437,7 +437,7 @@ export def FThtml() while n < 40 && n <= line("$") # Check for Angular - if getline(n) =~ '@\(if\|for\|defer\|switch\)\|\*\(ngIf\|ngFor\|ngSwitch\|ngTemplateOutlet\)\|ng-template\|ng-content\|{{.*}}' + if getline(n) =~ '@\(if\|for\|defer\|switch\)\|\*\(ngIf\|ngFor\|ngSwitch\|ngTemplateOutlet\)\|ng-template\|ng-content' setf htmlangular return endif