From: Bram Moolenaar Date: Sat, 27 Jul 2019 19:39:13 +0000 (+0200) Subject: patch 8.1.1761: filetype "vuejs" causes problems for some users X-Git-Tag: v8.1.1761 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4248111497ab78f45d3d48576740949778a1e76b;p=thirdparty%2Fvim.git patch 8.1.1761: filetype "vuejs" causes problems for some users Problem: Filetype "vuejs" causes problems for some users. Solution: Rename to "vue". --- diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 80fa02196f..43c0858387 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -710,6 +710,9 @@ au BufNewFile,BufRead *.html,*.htm,*.shtml,*.stm call dist#ft#FThtml() " Vue.js Single File Component au BufNewFile,BufRead *.vue setf vuejs +" Vue.js Single File Component +au BufNewFile,BufRead *.vue setf vue + " HTML with Ruby - eRuby au BufNewFile,BufRead *.erb,*.rhtml setf eruby diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 37d8ceda92..c455c65a57 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -475,6 +475,7 @@ let s:filename_checks = { \ 'voscm': ['file.cm'], \ 'vrml': ['file.wrl'], \ 'vroom': ['file.vroom'], + \ 'vue': ['file.vue'], \ 'wast': ['file.wast', 'file.wat'], \ 'webmacro': ['file.wm'], \ 'wget': ['.wgetrc', 'wgetrc'], diff --git a/src/version.c b/src/version.c index 4b89a31f17..b1d7fea6fb 100644 --- a/src/version.c +++ b/src/version.c @@ -777,6 +777,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1761, /**/ 1760, /**/