# Vim functions for file type detection
#
# Maintainer: The Vim Project <https://github.com/vim/vim>
-# Last Change: 2026 Jan 06
+# Last Change: 2026 Jan 11
# Former Maintainer: Bram Moolenaar <Bram@vim.org>
# These functions are moved here from runtime/filetype.vim to make startup
b:asmsyntax = "masm"
return
elseif line =~ 'Texas Instruments Incorporated' || (line =~ '^\*' && !is_slash_star_encountered)
- # tiasm uses `* commment`, but detection is unreliable if '/*' is seen
+ # tiasm uses `* comment`, but detection is unreliable if '/*' is seen
b:asmsyntax = "tiasm"
return
elseif ((line =~? '\.title\>\|\.ident\>\|\.macro\>\|\.subtitle\>\|\.library\>'))
# Test the file contents
for line in getline(1, 200)
- # Chech for comment style
+ # Check for comment style
if line =~ '^#.*'
setf make
return
" Vim runtime support library,
" runs the Vim9 script version or legacy script version
-" on demand (mostly for Neovim compatability)
+" on demand (mostly for Neovim compatibility)
"
" Maintainer: The Vim Project <https://github.com/vim/vim>
-" Last Change: 2025 Apr 27
+" Last Change: 2026 Jan 11
" enable the zip and gzip plugin by default, if not set
" Vim support file to detect file types
"
" Maintainer: The Vim Project <https://github.com/vim/vim>
-" Last Change: 2026 Jan 02
+" Last Change: 2026 Jan 11
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
" If the filetype can be detected from extension or file name(the final path component),
" zsql (zope sql method)
au BufNewFile,BufRead *.zsql call dist#ft#SQL()
-" Detect by extention
+" Detect by extension
au BufNewFile,BufRead * call dist#ft#DetectFromExt()
augroup END
# License
-To see License informations see the LICENSE.txt file included in this
+To see License information see the LICENSE.txt file included in this
repository.
# Credits
" FIXME: don't match as dictionary keys, remove when operators are not
" shared between Vim9 and legacy script
syn match vim9This contained "\.\@1<!\<this\>:\@!"
- " super must be folowed by '.'
+ " super must be followed by '.'
syn match vim9Super contained "\.\@1<!\<super\.\@="
VimFoldc syn region vim9ClassBody start="\<class\>" matchgroup=vimCommand end="\<endclass\>" contains=@vim9ClassBodyList transparent
" FIXME: don't match as dictionary keys, remove when operators are not
" shared between Vim9 and legacy script
syn match vim9This contained "\.\@1<!\<this\>:\@!"
- " super must be folowed by '.'
+ " super must be followed by '.'
syn match vim9Super contained "\.\@1<!\<super\.\@="
VimFoldc syn region vim9ClassBody start="\<class\>" matchgroup=vimCommand end="\<endclass\>" contains=@vim9ClassBodyList transparent
#define LBUFLEN 50 // length of line in diff file
-// Max file size xdiff is eqipped to deal with. The value (1GB - 1MB) comes
+// Max file size xdiff is equipped to deal with. The value (1GB - 1MB) comes
// from Git's implementation.
#define MAX_XDIFF_SIZE (1024L * 1024 * 1023)
func s:OnRedraw()
endfunc
-" Test if partial is correctly ref'ed and doesn't cause use afte free error
+" Test if partial is correctly ref'ed and doesn't cause use after free error
func Test_redraw_listener_partial()
call redraw_listener_add(#{on_start: function("s:OnRedraw", [1])})
endfunc
unlet g:instr
enddef
-" Disassemble the code generated for a constant tupe
+" Disassemble the code generated for a constant tuple
def Test_disassemble_tuple_const()
var lines =<< trim END
vim9script
set splitkeep=screen
call setline(1, range(&lines))
- " No scroll when cursor is at near bottom of window and cusor position
+ " No scroll when cursor is at near bottom of window and cursor position
" recompution (done by line('w0') in this test) happens while in cmdwin.
normal! G
let firstline = line('w0')
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2078,
/**/
2077,
/**/
fill_exarg_from_cctx(eap, cctx);
eap->forceit = FALSE;
- // We use the special <Lamba>99 name, but it's not really a lambda.
+ // We use the special <lambda>99 name, but it's not really a lambda.
lambda_name = get_lambda_name();
lambda_name.string = vim_strnsave(lambda_name.string, lambda_name.length);
if (lambda_name.string == NULL)
return NULL;
}
- // set the generic parms to VAR_ANY type
+ // set the generic params to VAR_ANY type
if (ga_grow(&gfatab->gfat_param_types, gfat_sz) == FAIL)
return NULL;