Merge #10858 from janlazo/vim-8.1.1930

vim-patch:8.1.{1930,1931}
This commit is contained in:
Justin M. Keyes 2019-08-27 09:27:03 +02:00 committed by GitHub
commit 4cedc8444e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 4 deletions

View File

@ -791,7 +791,10 @@ au BufNewFile,BufRead *.java,*.jav setf java
au BufNewFile,BufRead *.jj,*.jjt setf javacc au BufNewFile,BufRead *.jj,*.jjt setf javacc
" JavaScript, ECMAScript " JavaScript, ECMAScript
au BufNewFile,BufRead *.js,*.javascript,*.es,*.jsx,*.mjs setf javascript au BufNewFile,BufRead *.js,*.javascript,*.es,*.mjs setf javascript
" JavaScript with React
au BufNewFile,BufRead *.jsx setf javascriptreact
" Java Server Pages " Java Server Pages
au BufNewFile,BufRead *.jsp setf jsp au BufNewFile,BufRead *.jsp setf jsp
@ -1705,6 +1708,9 @@ au BufNewFile,BufReadPost *.twig setf twig
" Typescript " Typescript
au BufNewFile,BufReadPost *.ts setf typescript au BufNewFile,BufReadPost *.ts setf typescript
" TypeScript with React
au BufNewFile,BufRead *.tsx setf typescriptreact
" Motif UIT/UIL files " Motif UIT/UIL files
au BufNewFile,BufRead *.uit,*.uil setf uil au BufNewFile,BufRead *.uit,*.uil setf uil

View File

@ -0,0 +1,2 @@
" Placeholder for backwards compatilibity: .jsx used to stand for JavaScript.
source %:h/javascript.vim

View File

@ -0,0 +1,2 @@
" Placeholder for backwards compatilibity: .jsx used to stand for JavaScript.
source %:h/javascript.vim

View File

@ -0,0 +1,2 @@
" Placeholder for backwards compatilibity: .jsx used to stand for JavaScript.
source %:h/javascript.vim

View File

@ -221,7 +221,8 @@ let s:filename_checks = {
\ 'jam': ['file.jpl', 'file.jpr'], \ 'jam': ['file.jpl', 'file.jpr'],
\ '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.jsx', 'file.mjs'], \ 'javascript': ['file.js', 'file.javascript', 'file.es', 'file.mjs'],
\ 'javascriptreact': ['file.jsx'],
\ 'jess': ['file.clp'], \ 'jess': ['file.clp'],
\ 'jgraph': ['file.jgr'], \ 'jgraph': ['file.jgr'],
\ 'jovial': ['file.jov', 'file.j73', 'file.jovial'], \ 'jovial': ['file.jov', 'file.j73', 'file.jovial'],
@ -454,6 +455,7 @@ let s:filename_checks = {
\ 'tssop': ['file.tssop'], \ 'tssop': ['file.tssop'],
\ 'twig': ['file.twig'], \ 'twig': ['file.twig'],
\ 'typescript': ['file.ts'], \ 'typescript': ['file.ts'],
\ 'typescriptreact': ['file.tsx'],
\ 'uc': ['file.uc'], \ 'uc': ['file.uc'],
\ 'udevconf': ['/etc/udev/udev.conf'], \ 'udevconf': ['/etc/udev/udev.conf'],
\ 'udevperm': ['/etc/udev/permissions.d/file.permissions'], \ 'udevperm': ['/etc/udev/permissions.d/file.permissions'],
@ -608,5 +610,5 @@ endfunc
func Test_setfiletype_completion() func Test_setfiletype_completion()
call feedkeys(":setfiletype java\<C-A>\<C-B>\"\<CR>", 'tx') call feedkeys(":setfiletype java\<C-A>\<C-B>\"\<CR>", 'tx')
call assert_equal('"setfiletype java javacc javascript', @:) call assert_equal('"setfiletype java javacc javascript javascriptreact', @:)
endfunc endfunc

View File

@ -389,7 +389,7 @@ endfunc
func Test_ownsyntax_completion() func Test_ownsyntax_completion()
call feedkeys(":ownsyntax java\<C-A>\<C-B>\"\<CR>", 'tx') call feedkeys(":ownsyntax java\<C-A>\<C-B>\"\<CR>", 'tx')
call assert_equal('"ownsyntax java javacc javascript', @:) call assert_equal('"ownsyntax java javacc javascript javascriptreact', @:)
endfunc endfunc
func Test_highlight_invalid_arg() func Test_highlight_invalid_arg()