aboutsummaryrefslogtreecommitdiff
path: root/scripts/vim-patch.sh
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2022-03-18 04:47:08 +0000
committerGitHub <noreply@github.com>2022-03-18 12:47:08 +0800
commit00effff56944d5b59440dcdb5e3496d49a76d3e2 (patch)
tree09b28a8a44a8e98a58f4ced7a5e5a249c57ac072 /scripts/vim-patch.sh
parentc1b98cfa5e94c28a792af67cf5bc53ef2c380681 (diff)
downloadrneovim-00effff56944d5b59440dcdb5e3496d49a76d3e2.tar.gz
rneovim-00effff56944d5b59440dcdb5e3496d49a76d3e2.tar.bz2
rneovim-00effff56944d5b59440dcdb5e3496d49a76d3e2.zip
vim-patch:8.1.1693: syntax coloring and highlighting is in one big file (#17721)
Problem: Syntax coloring and highlighting is in one big file. Solution: Move the highlighting to a separate file. (Yegappan Lakshmanan, closes vim/vim#4674) https://github.com/vim/vim/commit/f9cc9f209ede9f15959e4c2351e970477c139614 Name the new file highlight_group.c instead. Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'scripts/vim-patch.sh')
-rwxr-xr-xscripts/vim-patch.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh
index 591c658e6b..c68ab3a751 100755
--- a/scripts/vim-patch.sh
+++ b/scripts/vim-patch.sh
@@ -236,6 +236,10 @@ preprocess_patch() {
LC_ALL=C sed -e 's/\( [ab]\/src\/nvim\)\/session\(\.[ch]\)/\1\/ex_session\2/g' \
"$file" > "$file".tmp && mv "$file".tmp "$file"
+ # Rename highlight.c to highlight_group.c
+ LC_ALL=C sed -e 's/\( [ab]\/src\/nvim\)\/highlight\(\.[ch]\)/\1\/highlight_group\2/g' \
+ "$file" > "$file".tmp && mv "$file".tmp "$file"
+
# Rename test_urls.vim to check_urls.vim
LC_ALL=C sed -e 's@\( [ab]\)/runtime/doc/test\(_urls.vim\)@\1/scripts/check\2@g' \
"$file" > "$file".tmp && mv "$file".tmp "$file"