Merge #41057 from janlazo/vim-na-c-plus-docs

This commit is contained in:
Justin M. Keyes 2026-07-30 05:48:42 -04:00 committed by GitHub
commit b5c623112e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 23 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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\*