aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-08-22 21:24:33 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-08-22 23:45:48 +0200
commit8c405d9b34b575c0d479d04dbfeb38f24c93287e (patch)
tree39e642cadf4c76675016bce6de203b6f37edaf94
parent1f5bcc7c4ed7a68ae4e23933aee04c50b4df8bb5 (diff)
downloadrneovim-8c405d9b34b575c0d479d04dbfeb38f24c93287e.tar.gz
rneovim-8c405d9b34b575c0d479d04dbfeb38f24c93287e.tar.bz2
rneovim-8c405d9b34b575c0d479d04dbfeb38f24c93287e.zip
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 <dennis.vandenberg@nedap.com>
-rw-r--r--runtime/syntax/htmlangular.vim18
1 files changed, 18 insertions, 0 deletions
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 <dennis@vdberg.dev>
+" 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"