mirror of
https://github.com/neovim/neovim.git
synced 2026-08-02 04:51:38 +08:00
Merge #41057 from janlazo/vim-na-c-plus-docs
This commit is contained in:
commit
b5c623112e
@ -942,11 +942,25 @@ is_na_patch() {
|
||||
fi
|
||||
;;
|
||||
*.h)
|
||||
HUNKS=$(git -C "${VIM_SOURCE_DIR}" diff-tree --no-commit-id -r -b -U0 '-I^#\s*(else|endif)' '-I^#\s*(ifdef|if.*defined\().*FEAT_' "$patch" -- "${file}")
|
||||
HUNKS=$(git -C "${VIM_SOURCE_DIR}" diff-tree --no-commit-id -r -b -U0 \
|
||||
'-I^\s+$' \
|
||||
'-I^#\s*(ifdef|if.*defined\().*FEAT_' \
|
||||
'-I^#\s*(else|endif)' \
|
||||
'-I^EXTERN char e_.*vim9' \
|
||||
'-I^\s*INIT\(= .+"E[0-9]+: .*[vV]im9' \
|
||||
"$patch" -- "$file")
|
||||
test -n "${HUNKS}" && return 1
|
||||
;;
|
||||
*.c)
|
||||
HUNKS=$(git -C "${VIM_SOURCE_DIR}" diff-tree --no-commit-id -r -b -U0 '-I^#\s*(else|endif)' '-I^#\s*(ifdef|if.*defined\().*FEAT_' "$patch" -- "$file" | grep -P '^@@ .* @@')
|
||||
HUNKS=$(git -C "${VIM_SOURCE_DIR}" diff-tree --no-commit-id -r -b -U0 \
|
||||
'-I^\s+$' \
|
||||
'-I^#\s*(ifdef|if.*defined\().*FEAT_' \
|
||||
'-I^#\s*(else|endif)' \
|
||||
'-I#\s*define.*ex_ni$' \
|
||||
'-I[_.>]sc_version = ' \
|
||||
'-I[_.>]uf_script_ctx_version = ' \
|
||||
"$patch" -- "${file}" |
|
||||
grep '^@@ .* @@')
|
||||
if test -n "$HUNKS"; then
|
||||
HUNK_NUM_FINAL=$(echo "$HUNKS" | sed 's/^@@ .* @@ \?//' | grep -cv -f "$NA_HUNKS_C")
|
||||
test "$HUNK_NUM_FINAL" -ne 0 && return 1
|
||||
|
||||
@ -76,6 +76,7 @@ src/README.md
|
||||
src/blowfish.c
|
||||
src/cairo.c
|
||||
src/channel.c
|
||||
src/clientserver.c
|
||||
src/dlldata.c
|
||||
src/hardcopy.c
|
||||
src/iid_ole.c
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
^:vim9.\+ .\+\*:vim9.\+\*
|
||||
^balloon_[a-zA-Z0-9_]\+(.\+balloon_[a-zA-Z0-9_]\+(
|
||||
^cscope_connection(.\+cscope_connection(
|
||||
^js_decode(.\+js_decode(
|
||||
@ -7,6 +8,9 @@
|
||||
^err_teapot(.\+err_teapot(
|
||||
^listener_[a-zA-Z0-9]\+(.\+listener_[a-zA-Z0-9]\+(
|
||||
^redraw_listener_[a-zA-Z0-9]\+(.\+redraw_listener_[a-zA-Z0-9]\+(
|
||||
^remote_[a-z]\+(.\+remote_[a-z]\+(
|
||||
^server2client(.\+server2client(
|
||||
^serverlist(.\+serverlist(
|
||||
^test_alloc_fail(.\+test_alloc_fail(
|
||||
^test_autochdir(.\+test_autochdir(
|
||||
^test_feedinput(.\+test_feedinput(
|
||||
@ -84,6 +88,8 @@
|
||||
\*:shell\*
|
||||
\*:smile\*
|
||||
\*:version\*
|
||||
\*E984\*
|
||||
\*E999\*
|
||||
\*HelpToc-mappings\*
|
||||
\*SafeStateAgain\*
|
||||
\*SigUSR1\*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user