Add twig filetype

See https://github.com/windwp/nvim-ts-autotag/pull/169

Signed-off-by: Price Hiller <price@orion-technologies.io>
Co-authored-by: Ystri0n <164430108+Ystri0n@users.noreply.github.com>
This commit is contained in:
Léo DEVILLE 2024-04-27 13:09:42 +02:00 committed by Price Hiller
parent 629011167b
commit 6bf91cad7e
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
2 changed files with 4 additions and 2 deletions

View File

@ -15,6 +15,7 @@ It works with:
- rescript
- svelte
- tsx
- twig
- typescript
- vue
- xml
@ -75,7 +76,7 @@ local filetypes = {
'xml',
'php',
'markdown',
'astro', 'glimmer', 'handlebars', 'hbs'
'astro', 'glimmer', 'handlebars', 'hbs', 'twig'
}
local skip_tag = {
'area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'slot',

View File

@ -12,7 +12,7 @@ M.tbl_filetypes = {
'xml',
'php',
'markdown',
'astro', 'glimmer', 'handlebars', 'hbs',
'astro', 'glimmer', 'handlebars', 'hbs', 'twig',
'htmldjango',
'eruby',
'templ',
@ -32,6 +32,7 @@ local HTML_TAG = {
'htmldjango',
'markdown',
'php',
'twig',
'xml',
},
start_tag_pattern = { 'start_tag', 'STag' },