aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua
diff options
context:
space:
mode:
authorObserverOfTime <chronobserver@disroot.org>2023-11-30 19:00:33 +0200
committerChristian Clason <c.clason@uni-graz.at>2023-11-30 18:40:27 +0100
commit307d5bcc7940d14f7d17e7c2de795ebed7b0f00c (patch)
tree1aab1f4eeb1018cd8444d431c6d7e83d02f852ef /runtime/lua
parent7feed6ccb7ddfa3bc789158a3b7874d12652e9c5 (diff)
downloadrneovim-307d5bcc7940d14f7d17e7c2de795ebed7b0f00c.tar.gz
rneovim-307d5bcc7940d14f7d17e7c2de795ebed7b0f00c.tar.bz2
rneovim-307d5bcc7940d14f7d17e7c2de795ebed7b0f00c.zip
vim-patch:9.0.2137: Can't detect angular & mustache filetypes
Problem: Can't detect angular & mustache filetypes Solution: Detect *.mustache as Mustache filetype; detect *.component.html as html.angular filetype closes: vim/vim#13594 https://github.com/vim/vim/commit/7bed263c343c62129c5d8f51796895a28db1b312
Diffstat (limited to 'runtime/lua')
-rw-r--r--runtime/lua/vim/filetype.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index c6200f16bb..2bbc545fc4 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -695,6 +695,7 @@ local extension = {
msql = 'msql',
mu = 'mupad',
mush = 'mush',
+ mustache = 'mustache',
mysql = 'mysql',
n1ql = 'n1ql',
nql = 'n1ql',
@@ -1716,6 +1717,7 @@ local pattern = {
['.*/etc/host%.conf'] = 'hostconf',
['.*/etc/hosts%.deny'] = 'hostsaccess',
['.*/etc/hosts%.allow'] = 'hostsaccess',
+ ['.*%.component%.html'] = 'html.angular',
['.*%.html%.m4'] = 'htmlm4',
['.*/%.i3/config'] = 'i3config',
['.*/i3/config'] = 'i3config',