1
0
forked from aniani/vim

patch 9.0.1430: Livebook files are not recognized

Problem:    Livebook files are not recognized.
Solution:   Add a pattern for Livebook files. (Mathias Jean Johansen,
            closes #12203)
This commit is contained in:
Mathias Jean Johansen
2023-03-28 21:28:36 +01:00
committed by Bram Moolenaar
parent 1a08a3e2a5
commit 6400203517
3 changed files with 6 additions and 0 deletions

View File

@@ -1162,6 +1162,9 @@ au BufNewFile,BufRead *.lite,*.lt setf lite
" LiteStep RC files " LiteStep RC files
au BufNewFile,BufRead */LiteStep/*/*.rc setf litestep au BufNewFile,BufRead */LiteStep/*/*.rc setf litestep
" Livebook
au BufNewFile,BufRead *.livemd setf livebook
" Login access " Login access
au BufNewFile,BufRead */etc/login.access setf loginaccess au BufNewFile,BufRead */etc/login.access setf loginaccess

View File

@@ -336,6 +336,7 @@ let s:filename_checks = {
\ 'lite': ['file.lite', 'file.lt'], \ 'lite': ['file.lite', 'file.lt'],
\ 'litestep': ['/LiteStep/any/file.rc', 'any/LiteStep/any/file.rc'], \ 'litestep': ['/LiteStep/any/file.rc', 'any/LiteStep/any/file.rc'],
\ 'logcheck': ['/etc/logcheck/file.d-some/file', '/etc/logcheck/file.d/file', 'any/etc/logcheck/file.d-some/file', 'any/etc/logcheck/file.d/file'], \ 'logcheck': ['/etc/logcheck/file.d-some/file', '/etc/logcheck/file.d/file', 'any/etc/logcheck/file.d-some/file', 'any/etc/logcheck/file.d/file'],
\ 'livebook': ['file.livemd'],
\ 'loginaccess': ['/etc/login.access', 'any/etc/login.access'], \ 'loginaccess': ['/etc/login.access', 'any/etc/login.access'],
\ 'logindefs': ['/etc/login.defs', 'any/etc/login.defs'], \ 'logindefs': ['/etc/login.defs', 'any/etc/login.defs'],
\ 'logtalk': ['file.lgt'], \ 'logtalk': ['file.lgt'],

View File

@@ -695,6 +695,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 */
/**/
1430,
/**/ /**/
1429, 1429,
/**/ /**/