Skip to content

Commit 142ffb0

Browse files
dundargocbrammool
authored andcommitted
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)
1 parent 61378a1 commit 142ffb0

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

runtime/filetype.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ au BufNewFile,BufRead *.graphql,*.graphqls,*.gql setf graphql
845845
au BufNewFile,BufRead *.gretl setf gretl
846846

847847
" Groovy
848-
au BufNewFile,BufRead *.gradle,*.groovy setf groovy
848+
au BufNewFile,BufRead *.gradle,*.groovy,Jenkinsfile setf groovy
849849

850850
" GNU Server Pages
851851
au BufNewFile,BufRead *.gsp setf gsp

src/testdir/test_filetype.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ let s:filename_checks = {
248248
\ 'grads': ['file.gs'],
249249
\ 'graphql': ['file.graphql', 'file.graphqls', 'file.gql'],
250250
\ 'gretl': ['file.gretl'],
251-
\ 'groovy': ['file.gradle', 'file.groovy'],
251+
\ 'groovy': ['file.gradle', 'file.groovy', 'Jenkinsfile'],
252252
\ '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'],
253253
\ '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'],
254254
\ 'gsp': ['file.gsp'],

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,8 @@ static char *(features[]) =
695695

696696
static int included_patches[] =
697697
{ /* Add new patch number below this line */
698+
/**/
699+
1467,
698700
/**/
699701
1466,
700702
/**/

0 commit comments

Comments
 (0)