Skip to content

Commit 6c391a7

Browse files
committed
Update runtime files
1 parent d176ca3 commit 6c391a7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+247
-167
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ runtime/ftplugin/meson.vim @Liambeguin
9999
runtime/ftplugin/modula3.vim @dkearns
100100
runtime/ftplugin/nroff.vim @a-vrma
101101
runtime/ftplugin/nsis.vim @k-takata
102+
runtime/ftplugin/octave.vim @dkearns
102103
runtime/ftplugin/pascal.vim @dkearns
103104
runtime/ftplugin/pbtxt.vim @lakshayg
104105
runtime/ftplugin/pdf.vim @tpope

runtime/autoload/ada.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ if exists ('g:ada_with_gnat_project_files')
6767
endfor
6868
endif
6969

70-
" Section: add standart exception {{{2
70+
" Section: add standard exception {{{2
7171
"
7272
for Item in ['Constraint_Error', 'Program_Error', 'Storage_Error', 'Tasking_Error', 'Status_Error', 'Mode_Error', 'Name_Error', 'Use_Error', 'Device_Error', 'End_Error', 'Data_Error', 'Layout_Error', 'Length_Error', 'Pattern_Error', 'Index_Error', 'Translation_Error', 'Time_Error', 'Argument_Error', 'Tag_Error', 'Picture_Error', 'Terminator_Error', 'Conversion_Error', 'Pointer_Error', 'Dereference_Error', 'Update_Error']
7373
let g:ada#Keywords += [{
7474
\ 'word': Item,
7575
\ 'menu': 'exception',
76-
\ 'info': 'Ada standart exception.',
76+
\ 'info': 'Ada standard exception.',
7777
\ 'kind': 'x',
7878
\ 'icase': 1}]
7979
endfor
@@ -210,7 +210,7 @@ function ada#Word (...)
210210
let l:Line = substitute (getline (l:Line_Nr), g:ada#Comment, '', '' )
211211

212212
" Cope with tag searching for items in comments; if we are, don't loop
213-
" backards looking for previous lines
213+
" backwards looking for previous lines
214214
if l:Column_Nr > strlen(l:Line)
215215
" We were in a comment
216216
let l:Line = getline(l:Line_Nr)

runtime/autoload/adacomplete.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
" 15.10.2006 MK Bram's suggestion for runtime integration
1515
" 05.11.2006 MK Bram suggested not to use include protection for
1616
" autoload
17-
" 05.11.2006 MK Bram suggested agaist using setlocal omnifunc
17+
" 05.11.2006 MK Bram suggested against using setlocal omnifunc
1818
" 05.11.2006 MK Bram suggested to save on spaces
1919
" Help Page: ft-ada-omni
2020
"------------------------------------------------------------------------------

runtime/autoload/csscomplete.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ function! csscomplete#CompleteCSS(findstart, base)
311311
let values = ["normal", "italic", "oblique", "small-caps", "bold", "bolder", "lighter", "100", "200", "300", "400", "500", "600", "700", "800", "900", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "larger", "smaller", "sans-serif", "serif", "monospace", "cursive", "fantasy", "caption", "icon", "menu", "message-box", "small-caption", "status-bar"]
312312
elseif prop =~ '^\%(height\|width\)$'
313313
let values = ["auto", "border-box", "content-box", "max-content", "min-content", "available", "fit-content"]
314-
elseif prop =~ '^\%(left\|rigth\)$'
314+
elseif prop =~ '^\%(left\|right\)$'
315315
let values = ["auto"]
316316
elseif prop == 'image-rendering'
317317
let values = ["auto", "crisp-edges", "pixelated"]

runtime/autoload/decada.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ endif
2323

2424
function decada#Unit_Name () dict " {{{1
2525
" Convert filename into acs unit:
26-
" 1: remove the file extenstion.
26+
" 1: remove the file extension.
2727
" 2: replace all double '_' or '-' with an dot (which denotes a separate)
2828
" 3: remove a trailing '_' (which denotes a specification)
2929
return substitute (substitute (expand ("%:t:r"), '__\|-', ".", "g"), '_$', "", '')

runtime/autoload/getscript.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ fun! getscript#GetLatestVimScripts()
129129
" insure that wget is executable
130130
if executable(g:GetLatestVimScripts_wget) != 1
131131
echoerr "GetLatestVimScripts needs ".g:GetLatestVimScripts_wget." which apparently is not available on your system"
132-
" call Dret("GetLatestVimScripts : wget not executable/availble")
132+
" call Dret("GetLatestVimScripts : wget not executable/available")
133133
return
134134
endif
135135

@@ -347,7 +347,7 @@ fun! s:GetOneScript(...)
347347
set t_ti= t_te= nors
348348

349349
" put current line on top-of-screen and interpret it into
350-
" a script identifer : used to obtain webpage
350+
" a script identifier : used to obtain webpage
351351
" source identifier : used to identify current version
352352
" and an associated comment: used to report on what's being considered
353353
if a:0 >= 3

runtime/autoload/haskellcomplete.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function! haskellcomplete#Complete(findstart, base)
5454

5555
if b:completingLangExtension
5656
if a:base ==? ""
57-
" Return all posible Lang extensions
57+
" Return all possible Lang extensions
5858
return s:langExtensions
5959
else
6060
let l:matches = []
@@ -70,7 +70,7 @@ function! haskellcomplete#Complete(findstart, base)
7070

7171
elseif b:completingOptionsGHC
7272
if a:base ==? ""
73-
" Return all posible GHC options
73+
" Return all possible GHC options
7474
return s:optionsGHC
7575
else
7676
let l:matches = []
@@ -86,7 +86,7 @@ function! haskellcomplete#Complete(findstart, base)
8686

8787
elseif b:completingModule
8888
if a:base ==? ""
89-
" Return all posible modules
89+
" Return all possible modules
9090
return s:commonModules
9191
else
9292
let l:matches = []

runtime/autoload/htmlcomplete.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ function! htmlcomplete#CompleteTags(findstart, base)
486486
endif
487487
endif
488488
" Value of attribute completion {{{
489-
" If attr contains =\s*[\"'] we catched value of attribute
489+
" If attr contains =\s*[\"'] we match value of attribute
490490
if attr =~ "=\s*[\"']" || attr =~ "=\s*$"
491491
" Let do attribute specific completion
492492
let attrname = matchstr(attr, '.*\ze\s*=')

runtime/autoload/netrw.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4267,15 +4267,15 @@ fun! s:NetrwGetBuffer(islocal,dirname)
42674267
endif
42684268
" call Decho(" bufnum#".bufnum,'~'.expand("<slnum>"))
42694269

4270-
" highjack the current buffer
4270+
" hijack the current buffer
42714271
" IF the buffer already has the desired name
42724272
" AND it is empty
42734273
let curbuf = bufname("%")
42744274
if curbuf == '.'
42754275
let curbuf = getcwd()
42764276
endif
42774277
" call Dredir("ls!","NetrwGetFile (renamed buffer back to remote filename<".rfile."> : expand(%)<".expand("%").">)")
4278-
" call Decho("deciding if netrw may highjack the current buffer#".bufnr("%")."<".curbuf.">",'~'.expand("<slnum>"))
4278+
" call Decho("deciding if netrw may hijack the current buffer#".bufnr("%")."<".curbuf.">",'~'.expand("<slnum>"))
42794279
" call Decho("..dirname<".dirname."> IF dirname == bufname",'~'.expand("<slnum>"))
42804280
" call Decho("..curbuf<".curbuf.">",'~'.expand("<slnum>"))
42814281
" call Decho("..line($)=".line("$")." AND this is 1",'~'.expand("<slnum>"))
@@ -4284,7 +4284,7 @@ fun! s:NetrwGetBuffer(islocal,dirname)
42844284
" call Dret("s:NetrwGetBuffer 0<cleared buffer> : highjacking buffer#".bufnr("%"))
42854285
return 0
42864286
else " DEBUG
4287-
" call Decho("..did NOT highjack buffer",'~'.expand("<slnum>"))
4287+
" call Decho("..did NOT hijack buffer",'~'.expand("<slnum>"))
42884288
endif
42894289
" Aug 14, 2021: was thinking about looking for a [No Name] buffer here and using it, but that might cause problems
42904290

@@ -6845,7 +6845,7 @@ fun! s:NetrwMarkFile(islocal,fname)
68456845

68466846
" sanity check
68476847
if empty(a:fname)
6848-
" call Dret("s:NetrwMarkFile : emtpy fname")
6848+
" call Dret("s:NetrwMarkFile : empty fname")
68496849
return
68506850
endif
68516851
let curdir = s:NetrwGetCurdir(a:islocal)

runtime/autoload/phpcomplete.vim

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"
1010
" let g:phpcomplete_relax_static_constraint = 1/0 [default 0]
1111
" Enables completion for non-static methods when completing for static context (::).
12-
" This generates E_STRICT level warning, but php calls these methods nontheless.
12+
" This generates E_STRICT level warning, but php calls these methods nonetheless.
1313
"
1414
" let g:phpcomplete_complete_for_unknown_classes = 1/0 [default 0]
1515
" Enables completion of variables and functions in "everything under the sun" fashion
@@ -28,7 +28,7 @@
2828
" This option controls the number of characters the user needs to type before
2929
" the tags will be searched for namespaces and classes in typed out namespaces in
3030
" "use ..." context. Setting this to 0 is not recommended because that means the code
31-
" have to scan every tag, and vim's taglist() function runs extremly slow with a
31+
" have to scan every tag, and vim's taglist() function runs extremely slow with a
3232
" "match everything" pattern.
3333
"
3434
" let g:phpcomplete_parse_docblock_comments = 1/0 [default 0]
@@ -263,7 +263,7 @@ function! phpcomplete#CompleteUse(base) " {{{
263263
call add(no_namespace_matches, {'word': namespace_for_class.'\'.tag.name, 'kind': tag.kind, 'menu': tag.filename, 'info': tag.filename })
264264
endif
265265
endfor
266-
" if it seems that the tags file have namespace informations we can safely throw
266+
" if it seems that the tags file have namespace information we can safely throw
267267
" away namespaceless tag matches since we can be sure they are invalid
268268
if patched_ctags_detected
269269
no_namespace_matches = []
@@ -805,7 +805,7 @@ function! phpcomplete#CompleteClassName(base, kinds, current_namespace, imports)
805805
endif
806806
endfor
807807

808-
" resolve the typed in part with namespaces (if theres a \ in it)
808+
" resolve the typed in part with namespaces (if there's a \ in it)
809809
let [tag_match_pattern, namespace_for_class] = phpcomplete#ExpandClassName(a:base, a:current_namespace, a:imports)
810810

811811
let tags = []
@@ -921,11 +921,11 @@ function! s:getNextCharWithPos(filelines, current_pos) " {{{
921921
endfunction " }}}
922922

923923
function! phpcomplete#EvaluateModifiers(modifiers, required_modifiers, prohibited_modifiers) " {{{
924-
" if theres no modifier, and no modifier is allowed and no modifier is required
924+
" if there's no modifier, and no modifier is allowed and no modifier is required
925925
if len(a:modifiers) == 0 && len(a:required_modifiers) == 0
926926
return 1
927927
else
928-
" check if every requred modifier is present
928+
" check if every required modifier is present
929929
for required_modifier in a:required_modifiers
930930
if index(a:modifiers, required_modifier) == -1
931931
return 0
@@ -1253,7 +1253,7 @@ function! phpcomplete#GetCurrentInstruction(line_number, col_number, phpbegin) "
12531253
endif
12541254
endif
12551255

1256-
" save the coma position for later use if theres a "naked" , possibly separating a parameter and it is not in a parented part
1256+
" save the coma position for later use if there's a "naked" , possibly separating a parameter and it is not in a parented part
12571257
if first_coma_break_pos == -1 && current_char == ','
12581258
let first_coma_break_pos = len(instruction)
12591259
endif
@@ -1299,7 +1299,7 @@ function! phpcomplete#GetCurrentInstruction(line_number, col_number, phpbegin) "
12991299

13001300
" there were a "naked" coma in the instruction
13011301
if first_coma_break_pos != -1
1302-
if instruction !~? '^use' && instruction !~? '^class' " use ... statements and class delcarations should not be broken up by comas
1302+
if instruction !~? '^use' && instruction !~? '^class' " use ... statements and class declarations should not be broken up by comas
13031303
let pos = (-1 * first_coma_break_pos) + 1
13041304
let instruction = instruction[pos :]
13051305
endif
@@ -1311,7 +1311,7 @@ function! phpcomplete#GetCurrentInstruction(line_number, col_number, phpbegin) "
13111311
" clear everything up until the first (
13121312
let instruction = substitute(instruction, '^\(if\|while\|foreach\|for\)\s*(\s*', '', '')
13131313

1314-
" lets iterate trough the instruction until we can find the pair for the opening (
1314+
" lets iterate through the instruction until we can find the pair for the opening (
13151315
let i = 0
13161316
let depth = 1
13171317
while i < len(instruction)
@@ -1419,7 +1419,7 @@ function! phpcomplete#GetCallChainReturnType(classname_candidate, class_candidat
14191419
let parts = split(substitute(type, '^\\', '', ''), '\')
14201420
let class_candidate_namespace = join(parts[0:-2], '\')
14211421
let classname_candidate = parts[-1]
1422-
" check for renamed namepsace in imports
1422+
" check for renamed namespace in imports
14231423
if has_key(classstructure.imports, class_candidate_namespace)
14241424
let class_candidate_namespace = classstructure.imports[class_candidate_namespace].name
14251425
endif
@@ -2018,7 +2018,7 @@ function! phpcomplete#GetCachedClassContents(classlocation, class_name) " {{{
20182018
if getftime(classstructure.file) != classstructure.mtime
20192019
let valid = 0
20202020
" we could break here, but the time required for checking probably worth
2021-
" the the memory we can free by checking every file in the cached hirearchy
2021+
" the the memory we can free by checking every file in the cached hierarchy
20222022
call phpcomplete#ClearCachedClassContents(classstructure.file)
20232023
endif
20242024
endfor
@@ -2032,7 +2032,7 @@ function! phpcomplete#GetCachedClassContents(classlocation, class_name) " {{{
20322032
call remove(s:cache_classstructures, cache_key)
20332033
call phpcomplete#ClearCachedClassContents(full_file_path)
20342034

2035-
" fall trough for the read from files path
2035+
" fall through for the read from files path
20362036
endif
20372037
else
20382038
call phpcomplete#ClearCachedClassContents(full_file_path)
@@ -2141,7 +2141,7 @@ function! phpcomplete#GetClassContentsStructure(file_path, file_lines, class_nam
21412141
let l = lnum
21422142
let search_line = trait_line
21432143

2144-
" add lines from the file until theres no ';' in them
2144+
" add lines from the file until there's no ';' in them
21452145
while search_line !~? ';' && l > 0
21462146
" file lines are reversed so we need to go backwards
21472147
let l += 1
@@ -2573,7 +2573,7 @@ function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{
25732573
let search_line = line
25742574
let use_line = line
25752575

2576-
" add lines from the file until theres no ';' in them
2576+
" add lines from the file until there's no ';' in them
25772577
while search_line !~? ';' && l > 0
25782578
" file lines are reversed so we need to go backwards
25792579
let l -= 1
@@ -2605,7 +2605,7 @@ function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{
26052605
" find kind flags from tags or built in methods for the objects we extracted
26062606
" they can be either classes, interfaces or namespaces, no other thing is importable in php
26072607
for [key, import] in items(imports)
2608-
" if theres a \ in the name we have it's definitely not a built in thing, look for tags
2608+
" if there's a \ in the name we have it's definitely not a built in thing, look for tags
26092609
if import.name =~ '\\'
26102610
let patched_ctags_detected = 0
26112611
let [classname, namespace_for_classes] = phpcomplete#ExpandClassName(import.name, '\', {})
@@ -2662,10 +2662,10 @@ function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{
26622662
let import['kind'] = 'i'
26632663
let import['builtin'] = 1
26642664
else
2665-
" or can be a tag with exactly matchign name
2665+
" or can be a tag with exactly matching name
26662666
let tags = phpcomplete#GetTaglist('^'.import['name'].'$')
26672667
for tag in tags
2668-
" search for the first matchin namespace, class, interface with no namespace
2668+
" search for the first matching namespace, class, interface with no namespace
26692669
if !has_key(tag, 'namespace') && (tag.kind == 'n' || tag.kind == 'c' || tag.kind == 'i' || tag.kind == 't')
26702670
call extend(import, tag)
26712671
let import['builtin'] = 0
@@ -2883,7 +2883,7 @@ for [ext, data] in items(php_builtin['functions'])
28832883
call extend(g:php_builtin_functions, data)
28842884
endfor
28852885

2886-
" Built in classs
2886+
" Built in class
28872887
let g:php_builtin_classes = {}
28882888
for [ext, data] in items(php_builtin['classes'])
28892889
call extend(g:php_builtin_classes, data)
@@ -2901,10 +2901,10 @@ for [ext, data] in items(php_builtin['constants'])
29012901
call extend(g:php_constants, data)
29022902
endfor
29032903

2904-
" When the classname not found or found but the tags dosen't contain that
2905-
" class we will try to complate any method of any builtin class. To speed up
2904+
" When the classname not found or found but the tags doesn't contain that
2905+
" class we will try to complete any method of any builtin class. To speed up
29062906
" that lookup we compile a 'ClassName::MethodName':'info' dictionary from the
2907-
" builtin class informations
2907+
" builtin class information
29082908
let g:php_builtin_object_functions = {}
29092909

29102910
" When completing for 'everyting imaginable' (no class context, not a

0 commit comments

Comments
 (0)