mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.3283: Julia filetype is not recognized
Problem: Julia filetype is not recognized Solution: Add filetype detection. (Christian Clason, closes #8700)
This commit is contained in:
parent
41a3485dd6
commit
0eec851942
@ -874,6 +874,9 @@ au BufNewFile,BufRead *.ipynb setf json
|
|||||||
" JSONC
|
" JSONC
|
||||||
au BufNewFile,BufRead *.jsonc setf jsonc
|
au BufNewFile,BufRead *.jsonc setf jsonc
|
||||||
|
|
||||||
|
" Julia
|
||||||
|
au BufNewFile,BufRead *.jl setf julia
|
||||||
|
|
||||||
" Kixtart
|
" Kixtart
|
||||||
au BufNewFile,BufRead *.kix setf kix
|
au BufNewFile,BufRead *.kix setf kix
|
||||||
|
|
||||||
|
@ -263,6 +263,7 @@ let s:filename_checks = {
|
|||||||
\ 'json': ['file.json', 'file.jsonp', 'file.json-patch', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb'],
|
\ 'json': ['file.json', 'file.jsonp', 'file.json-patch', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb'],
|
||||||
\ 'jsonc': ['file.jsonc'],
|
\ 'jsonc': ['file.jsonc'],
|
||||||
\ 'jsp': ['file.jsp'],
|
\ 'jsp': ['file.jsp'],
|
||||||
|
\ 'julia': ['file.jl'],
|
||||||
\ 'kconfig': ['Kconfig', 'Kconfig.debug', 'Kconfig.file'],
|
\ 'kconfig': ['Kconfig', 'Kconfig.debug', 'Kconfig.file'],
|
||||||
\ 'kivy': ['file.kv'],
|
\ 'kivy': ['file.kv'],
|
||||||
\ 'kix': ['file.kix'],
|
\ 'kix': ['file.kix'],
|
||||||
@ -778,6 +779,7 @@ func Test_pp_file()
|
|||||||
split Xfile.pp
|
split Xfile.pp
|
||||||
call assert_equal('pascal', &filetype)
|
call assert_equal('pascal', &filetype)
|
||||||
bwipe!
|
bwipe!
|
||||||
|
unlet g:filetype_pp
|
||||||
|
|
||||||
" Test dist#ft#FTpp()
|
" Test dist#ft#FTpp()
|
||||||
call writefile(['{ pascal comment'], 'Xfile.pp')
|
call writefile(['{ pascal comment'], 'Xfile.pp')
|
||||||
|
@ -755,6 +755,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 */
|
||||||
|
/**/
|
||||||
|
3283,
|
||||||
/**/
|
/**/
|
||||||
3282,
|
3282,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user