Skip to content

Commit cce82a5

Browse files
Gabriele Muscobrammool
authored andcommitted
patch 9.0.0443: blueprint files are not recognized
Problem: Blueprint files are not recognized. Solution: Add a pattern for blueprint files. (Gabriele Musco, closes #11107)
1 parent 79f8b84 commit cce82a5

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

runtime/filetype.vim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -874,11 +874,11 @@ au BufNewFile,BufRead *.htt,*.htb setf httest
874874

875875
" i3
876876
au BufNewFile,BufRead */i3/config setf i3config
877-
au BufNewFile,BufRead */.i3/config setf i3config
877+
au BufNewFile,BufRead */.i3/config setf i3config
878878

879879
" sway
880880
au BufNewFile,BufRead */sway/config setf swayconfig
881-
au BufNewFile,BufRead */.sway/config setf swayconfig
881+
au BufNewFile,BufRead */.sway/config setf swayconfig
882882

883883
" Icon
884884
au BufNewFile,BufRead *.icn setf icon
@@ -2579,6 +2579,8 @@ au BufNewFile,BufRead *.txt
25792579
\| setf text
25802580
\| endif
25812581

2582+
" Blueprint markup files
2583+
au BufNewFile,BufRead *.blp setf blueprint
25822584

25832585
" Use the filetype detect plugins. They may overrule any of the previously
25842586
" detected filetypes.

src/testdir/test_filetype.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ let s:filename_checks = {
8888
\ 'bindzone': ['named.root', '/bind/db.file', '/named/db.file', 'any/bind/db.file', 'any/named/db.file'],
8989
\ 'bitbake': ['file.bb', 'file.bbappend', 'file.bbclass', 'build/conf/local.conf', 'meta/conf/layer.conf', 'build/conf/bbappend.conf', 'meta-layer/conf/distro/foo.conf'],
9090
\ 'blank': ['file.bl'],
91+
\ 'blueprint': ['file.blp'],
9192
\ 'bsdl': ['file.bsd', 'file.bsdl'],
9293
\ 'bst': ['file.bst'],
9394
\ 'bzl': ['file.bazel', 'file.bzl', 'WORKSPACE'],

src/version.c

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

704704
static int included_patches[] =
705705
{ /* Add new patch number below this line */
706+
/**/
707+
443,
706708
/**/
707709
442,
708710
/**/

0 commit comments

Comments
 (0)