Skip to content

Commit 8aa2a37

Browse files
amaanqbrammool
authored andcommitted
patch 9.0.1421: Nu files are not recognized
Problem: Nu files are not recognized. Solution: Add a pattern for Nu files. (Amaan Qureshi, closes #12172)
1 parent aa26153 commit 8aa2a37

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

runtime/filetype.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,6 +1399,9 @@ au BufNewFile,BufRead *.nse setf lua
13991399
" NSIS
14001400
au BufNewFile,BufRead *.nsi,*.nsh setf nsis
14011401

1402+
" Nu
1403+
au BufNewFile,BufRead {env,config}.nu setf nu
1404+
14021405
" Oblivion Language and Oblivion Script Extender
14031406
au BufNewFile,BufRead *.obl,*.obse,*.oblivion,*.obscript setf obse
14041407

src/testdir/test_filetype.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ let s:filename_checks = {
412412
\ 'nqc': ['file.nqc'],
413413
\ 'nroff': ['file.tr', 'file.nr', 'file.roff', 'file.tmac', 'file.mom', 'tmac.file'],
414414
\ 'nsis': ['file.nsi', 'file.nsh'],
415+
\ 'nu': ['env.nu', 'config.nu'],
415416
\ 'obj': ['file.obj'],
416417
\ 'obse': ['file.obl', 'file.obse', 'file.oblivion', 'file.obscript'],
417418
\ 'ocaml': ['file.ml', 'file.mli', 'file.mll', 'file.mly', '.ocamlinit', 'file.mlt', 'file.mlp', 'file.mlip', 'file.mli.cppo', 'file.ml.cppo'],

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,8 @@ static char *(features[]) =
695695

696696
static int included_patches[] =
697697
{ /* Add new patch number below this line */
698+
/**/
699+
1421,
698700
/**/
699701
1420,
700702
/**/

0 commit comments

Comments
 (0)