]> granicus.if.org Git - vim/commitdiff
patch 8.1.1761: filetype "vuejs" causes problems for some users v8.1.1761
authorBram Moolenaar <Bram@vim.org>
Sat, 27 Jul 2019 19:39:13 +0000 (21:39 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 27 Jul 2019 19:39:13 +0000 (21:39 +0200)
Problem:    Filetype "vuejs" causes problems for some users.
Solution:   Rename to "vue".

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 80fa02196fa50660431276041999b78c1b110f13..43c0858387f1f3c577e6d3eeafd4986fb39d06c1 100644 (file)
@@ -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
 
index 37d8ceda9216830696e5a7e8b0e5e3f73c88d645..c455c65a57d32c7e9c47923cddb1784f0686a87a 100644 (file)
@@ -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'],
index 4b89a31f17545e156b0330b3efa32ab3be3ff417..b1d7fea6fbf6e12a312fe63307c7fd6c53325920 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1761,
 /**/
     1760,
 /**/