From 8c405d9b34b575c0d479d04dbfeb38f24c93287e Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Thu, 22 Aug 2024 21:24:33 +0200 Subject: [PATCH] vim-patch:0e9fd77: runtime(htmlangular): add html syntax highlighting fixes: vim/vim#15459 closes: vim/vim#15552 https://github.com/vim/vim/commit/0e9fd7755d23477a1cf3a101c301155ba0bc1e2c Co-authored-by: Dennis van den Berg --- runtime/syntax/htmlangular.vim | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 runtime/syntax/htmlangular.vim diff --git a/runtime/syntax/htmlangular.vim b/runtime/syntax/htmlangular.vim new file mode 100644 index 0000000000..021e61f9b1 --- /dev/null +++ b/runtime/syntax/htmlangular.vim @@ -0,0 +1,18 @@ +" Vim syntax file +" Language: Angular HTML template +" Maintainer: Dennis van den Berg +" Last Change: 2024 Aug 22 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +if !exists("main_syntax") + let main_syntax = 'html' +endif + +runtime! syntax/html.vim +unlet b:current_syntax + +let b:current_syntax = "htmlangular"