forked from git-for-windows/git-sdk-64
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vim (9.1.0740-1 -> 9.1.0785-1) Signed-off-by: Git for Windows Build Agent <[email protected]>
- Loading branch information
Git for Windows Build Agent
committed
Oct 28, 2024
1 parent
3361f58
commit c8997ba
Showing
109 changed files
with
2,631 additions
and
905 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
" Vim formatting plugin file | ||
" Language: Java | ||
" Maintainer: Aliaksei Budavei <0x000c70 AT gmail DOT com> | ||
" Repository: https://github.com/zzzyxwvut/java-vim.git | ||
" Last Change: 2024 Sep 26 | ||
|
||
" Documented in ":help ft-java-plugin". | ||
if &cp || exists("g:loaded_javaformat") || exists("g:java_ignore_javadoc") || exists("g:java_ignore_markdown") | ||
finish | ||
endif | ||
|
||
let g:loaded_javaformat = 1 | ||
|
||
"""" STRIVE TO REMAIN COMPATIBLE FOR AT LEAST VIM 7.0. | ||
|
||
function! javaformat#RemoveCommonMarkdownWhitespace() abort | ||
if mode() != 'n' | ||
return 0 | ||
endif | ||
|
||
let pattern = '\(^\s*///\)\(\s*\)\(.*\)' | ||
|
||
" E121 for v:numbermax before v8.2.2388. | ||
" E15 for expr-<< before v8.2.5003. | ||
let common = 0x7fffffff | ||
let comments = [] | ||
|
||
for n in range(v:lnum, (v:lnum + v:count - 1)) | ||
let parts = matchlist(getline(n), pattern) | ||
let whitespace = get(parts, 2, '') | ||
let nonwhitespace = get(parts, 3, '') | ||
|
||
if !empty(whitespace) | ||
let common = min([common, strlen(whitespace)]) | ||
elseif !empty(nonwhitespace) || empty(parts) | ||
" No whitespace prefix or not a Markdown comment. | ||
return 0 | ||
endif | ||
|
||
call add(comments, [whitespace, parts[1], nonwhitespace]) | ||
endfor | ||
|
||
let cursor = v:lnum | ||
|
||
for line in comments | ||
call setline(cursor, join(line[1 :], strpart(line[0], common))) | ||
let cursor += 1 | ||
endfor | ||
|
||
return 0 | ||
endfunction | ||
|
||
" See ":help vim9-mix". | ||
if !has("vim9script") | ||
finish | ||
endif | ||
|
||
def! g:javaformat#RemoveCommonMarkdownWhitespace(): number | ||
if mode() != 'n' | ||
return 0 | ||
endif | ||
|
||
const pattern: string = '\(^\s*///\)\(\s*\)\(.*\)' | ||
var common: number = v:numbermax | ||
var comments: list<list<string>> = [] | ||
|
||
for n in range(v:lnum, (v:lnum + v:count - 1)) | ||
const parts: list<string> = matchlist(getline(n), pattern) | ||
const whitespace: string = get(parts, 2, '') | ||
const nonwhitespace: string = get(parts, 3, '') | ||
|
||
if !empty(whitespace) | ||
common = min([common, strlen(whitespace)]) | ||
elseif !empty(nonwhitespace) || empty(parts) | ||
# No whitespace prefix or not a Markdown comment. | ||
return 0 | ||
endif | ||
|
||
add(comments, [whitespace, parts[1], nonwhitespace]) | ||
endfor | ||
|
||
var cursor: number = v:lnum | ||
|
||
for line in comments | ||
setline(cursor, join(line[1 :], strpart(line[0], common))) | ||
cursor += 1 | ||
endfor | ||
|
||
return 0 | ||
enddef | ||
|
||
" vim: fdm=syntax sw=4 ts=8 noet sta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
" vim compiler file | ||
" Compiler: cppcheck (C++ static checker) | ||
" Maintainer: Vincent B. ([email protected]) | ||
" Last Change: 2024 Oct 4 by @Konfekt | ||
|
||
if exists("cppcheck") | ||
finish | ||
endif | ||
let current_compiler = "cppcheck" | ||
|
||
let s:cpo_save = &cpo | ||
set cpo-=C | ||
|
||
if !exists('g:c_cppcheck_params') | ||
let g:c_cppcheck_params = '--verbose --force --inline-suppr' | ||
\ ..' '..'--enable=warning,style,performance,portability,information,missingInclude' | ||
\ ..' '..(executable('getconf') ? '-j' .. systemlist('getconf _NPROCESSORS_ONLN')[0] : '') | ||
let s:undo_compiler = 'unlet! g:c_cppcheck_params' | ||
endif | ||
|
||
let &l:makeprg = 'cppcheck --quiet' | ||
\ ..' --template="{file}:{line}:{column}: {severity}: [{id}] {message} {callstack}"' | ||
\ ..' '..get(b:, 'c_cppcheck_params', | ||
\ g:c_cppcheck_params..' '..(&filetype ==# 'cpp' ? ' --language=c++' : '')) | ||
\ ..' '..get(b:, 'c_cppcheck_includes', get(g:, 'c_cppcheck_includes', | ||
\ (filereadable('compile_commands.json') ? '--project=compile_commands.json' : | ||
\ (empty(&path) ? '' : '-I')..join(map(filter(split(&path, ','), 'isdirectory(v:val)'),'shellescape(v:val)'), ' -I')))) | ||
silent CompilerSet makeprg | ||
|
||
CompilerSet errorformat= | ||
\%f:%l:%c:\ %tarning:\ %m, | ||
\%f:%l:%c:\ %trror:\ %m, | ||
\%f:%l:%c:\ %tnformation:\ %m, | ||
\%f:%l:%c:\ %m, | ||
\%.%#\ :\ [%f:%l]\ %m | ||
|
||
exe get(s:, 'undo_compiler', '') | ||
|
||
let &cpo = s:cpo_save | ||
unlet s:cpo_save |
Oops, something went wrong.