forked from aniani/vim
patch 9.0.0402: javascript module files are not recoginzed
Problem: Javascript module files are not recoginzed. Solution: Recognize "*.jsm" files as Javascript. (Brett Holman, closes #11069)
This commit is contained in:
committed by
Bram Moolenaar
parent
bd01f476ea
commit
bb6c4073e7
@@ -940,7 +940,7 @@ au BufNewFile,BufRead *.java,*.jav setf java
|
|||||||
au BufNewFile,BufRead *.jj,*.jjt setf javacc
|
au BufNewFile,BufRead *.jj,*.jjt setf javacc
|
||||||
|
|
||||||
" JavaScript, ECMAScript, ES module script, CommonJS script
|
" JavaScript, ECMAScript, ES module script, CommonJS script
|
||||||
au BufNewFile,BufRead *.js,*.javascript,*.es,*.mjs,*.cjs setf javascript
|
au BufNewFile,BufRead *.js,*.jsm,*.javascript,*.es,*.mjs,*.cjs setf javascript
|
||||||
|
|
||||||
" JavaScript with React
|
" JavaScript with React
|
||||||
au BufNewFile,BufRead *.jsx setf javascriptreact
|
au BufNewFile,BufRead *.jsx setf javascriptreact
|
||||||
|
@@ -275,7 +275,7 @@ let s:filename_checks = {
|
|||||||
\ 'jam': ['file.jpl', 'file.jpr', 'JAM-file.file', 'JAM.file', 'Prl-file.file', 'Prl.file'],
|
\ 'jam': ['file.jpl', 'file.jpr', 'JAM-file.file', 'JAM.file', 'Prl-file.file', 'Prl.file'],
|
||||||
\ 'java': ['file.java', 'file.jav'],
|
\ 'java': ['file.java', 'file.jav'],
|
||||||
\ 'javacc': ['file.jj', 'file.jjt'],
|
\ 'javacc': ['file.jj', 'file.jjt'],
|
||||||
\ 'javascript': ['file.js', 'file.javascript', 'file.es', 'file.mjs', 'file.cjs'],
|
\ 'javascript': ['file.js', 'file.jsm', 'file.javascript', 'file.es', 'file.mjs', 'file.cjs'],
|
||||||
\ 'javascript.glimmer': ['file.gjs'],
|
\ 'javascript.glimmer': ['file.gjs'],
|
||||||
\ 'javascriptreact': ['file.jsx'],
|
\ 'javascriptreact': ['file.jsx'],
|
||||||
\ 'jess': ['file.clp'],
|
\ 'jess': ['file.clp'],
|
||||||
|
@@ -703,6 +703,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
402,
|
||||||
/**/
|
/**/
|
||||||
401,
|
401,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user