diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh index 1ec4101b3b..7de6ea129e 100755 --- a/scripts/vim-patch.sh +++ b/scripts/vim-patch.sh @@ -957,7 +957,9 @@ is_na_patch() { *.h) HUNKS=$(git -C "${VIM_SOURCE_DIR}" diff-tree --no-commit-id -r -b -U0 \ '-I^\s+$' \ - '-I^#\s*(ifdef|if.*defined\().*FEAT_' \ + '-I^\s*/?\*/?$' \ + '-I^\s*(//|/?\*).*\s[vV]im9' \ + '-I^#\s*((ifdef|ifndef|define|undef)|(if|elif)\s.*defined\().*FEAT_' \ '-I^#\s*(else|endif)' \ '-I#\s*define\s+XDG_' \ '-I^EXTERN type_T t_.* INIT[2-9]\(' \ @@ -984,9 +986,11 @@ is_na_patch() { *.c) HUNKS=$(git -C "${VIM_SOURCE_DIR}" diff-tree --no-commit-id -r -b -U0 \ '-I^\s+$' \ - '-I^#\s*include\s+]sc_version = ' \