0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 9.0.1467: Jenkinsfiles are not recognized as groovy

Problem:    Jenkinsfiles are not recognized as groovy.
Solution:   Add a pattern for Jenkinsfiles. (closes #12236)
This commit is contained in:
dundargoc 2023-04-18 20:53:22 +01:00 committed by Bram Moolenaar
parent 61378a1542
commit 142ffb024d
3 changed files with 4 additions and 2 deletions

View File

@ -845,7 +845,7 @@ au BufNewFile,BufRead *.graphql,*.graphqls,*.gql setf graphql
au BufNewFile,BufRead *.gretl setf gretl au BufNewFile,BufRead *.gretl setf gretl
" Groovy " Groovy
au BufNewFile,BufRead *.gradle,*.groovy setf groovy au BufNewFile,BufRead *.gradle,*.groovy,Jenkinsfile setf groovy
" GNU Server Pages " GNU Server Pages
au BufNewFile,BufRead *.gsp setf gsp au BufNewFile,BufRead *.gsp setf gsp

View File

@ -248,7 +248,7 @@ let s:filename_checks = {
\ 'grads': ['file.gs'], \ 'grads': ['file.gs'],
\ 'graphql': ['file.graphql', 'file.graphqls', 'file.gql'], \ 'graphql': ['file.graphql', 'file.graphqls', 'file.gql'],
\ 'gretl': ['file.gretl'], \ 'gretl': ['file.gretl'],
\ 'groovy': ['file.gradle', 'file.groovy'], \ 'groovy': ['file.gradle', 'file.groovy', 'Jenkinsfile'],
\ 'group': ['any/etc/group', 'any/etc/group-', 'any/etc/group.edit', 'any/etc/gshadow', 'any/etc/gshadow-', 'any/etc/gshadow.edit', 'any/var/backups/group.bak', 'any/var/backups/gshadow.bak', '/etc/group', '/etc/group-', '/etc/group.edit', '/etc/gshadow', '/etc/gshadow-', '/etc/gshadow.edit', '/var/backups/group.bak', '/var/backups/gshadow.bak'], \ 'group': ['any/etc/group', 'any/etc/group-', 'any/etc/group.edit', 'any/etc/gshadow', 'any/etc/gshadow-', 'any/etc/gshadow.edit', 'any/var/backups/group.bak', 'any/var/backups/gshadow.bak', '/etc/group', '/etc/group-', '/etc/group.edit', '/etc/gshadow', '/etc/gshadow-', '/etc/gshadow.edit', '/var/backups/group.bak', '/var/backups/gshadow.bak'],
\ 'grub': ['/boot/grub/menu.lst', '/boot/grub/grub.conf', '/etc/grub.conf', 'any/boot/grub/grub.conf', 'any/boot/grub/menu.lst', 'any/etc/grub.conf'], \ 'grub': ['/boot/grub/menu.lst', '/boot/grub/grub.conf', '/etc/grub.conf', 'any/boot/grub/grub.conf', 'any/boot/grub/menu.lst', 'any/etc/grub.conf'],
\ 'gsp': ['file.gsp'], \ 'gsp': ['file.gsp'],

View File

@ -695,6 +695,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1467,
/**/ /**/
1466, 1466,
/**/ /**/