Patch 9.0.0402
Problem: Javascript module files are not recoginzed.
Solution: Recognize "*.jsm" files as Javascript. (Brett Holman,
closes #11069)
Files: runtime/filetype.vim, src/testdir/test_filetype.vim
*** ../vim-9.0.0401/runtime/filetype.vim 2022-09-01 15:00:17.992986820
+0100
--- runtime/filetype.vim 2022-09-07 14:08:43.610585959 +0100
***************
*** 940,946 ****
au BufNewFile,BufRead *.jj,*.jjt setf javacc
" JavaScript, ECMAScript, ES module script, CommonJS script
! au BufNewFile,BufRead *.js,*.javascript,*.es,*.mjs,*.cjs setf javascript
" JavaScript with React
au BufNewFile,BufRead *.jsx setf javascriptreact
--- 940,946 ----
au BufNewFile,BufRead *.jj,*.jjt setf javacc
" JavaScript, ECMAScript, ES module script, CommonJS script
! au BufNewFile,BufRead *.js,*.jsm,*.javascript,*.es,*.mjs,*.cjs setf
javascript
" JavaScript with React
au BufNewFile,BufRead *.jsx setf javascriptreact
*** ../vim-9.0.0401/src/testdir/test_filetype.vim 2022-09-02
21:55:45.503049444 +0100
--- src/testdir/test_filetype.vim 2022-09-07 14:08:43.610585959 +0100
***************
*** 275,281 ****
\ 'jam': ['file.jpl', 'file.jpr', 'JAM-file.file', 'JAM.file',
'Prl-file.file', 'Prl.file'],
\ 'java': ['file.java', 'file.jav'],
\ 'javacc': ['file.jj', 'file.jjt'],
! \ 'javascript': ['file.js', 'file.javascript', 'file.es', 'file.mjs',
'file.cjs'],
\ 'javascript.glimmer': ['file.gjs'],
\ 'javascriptreact': ['file.jsx'],
\ 'jess': ['file.clp'],
--- 275,281 ----
\ 'jam': ['file.jpl', 'file.jpr', 'JAM-file.file', 'JAM.file',
'Prl-file.file', 'Prl.file'],
\ 'java': ['file.java', 'file.jav'],
\ 'javacc': ['file.jj', 'file.jjt'],
! \ 'javascript': ['file.js', 'file.jsm', 'file.javascript', 'file.es',
'file.mjs', 'file.cjs'],
\ 'javascript.glimmer': ['file.gjs'],
\ 'javascriptreact': ['file.jsx'],
\ 'jess': ['file.clp'],
*** ../vim-9.0.0401/src/version.c 2022-09-07 13:30:15.238573129 +0100
--- src/version.c 2022-09-07 14:13:03.798174486 +0100
***************
*** 705,706 ****
--- 705,708 ----
{ /* Add new patch number below this line */
+ /**/
+ 402,
/**/
--
hundred-and-one symptoms of being an internet addict:
27. You refer to your age as 3.x.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20220907131413.0CF0F1C0D3E%40moolenaar.net.