9f0de93157
- Add nginx-vim-syntax.patch * Fix the vim syntax file to work with vim 8, boo#1187888 https://trac.nginx.org/nginx/ticket/2276 OBS-URL: https://build.opensuse.org/request/show/930116 OBS-URL: https://build.opensuse.org/package/show/server:http/nginx?expand=0&rev=218
24 lines
645 B
Diff
24 lines
645 B
Diff
diff -Nur nginx-1.21.4/contrib/vim/syntax/nginx.vim new/contrib/vim/syntax/nginx.vim
|
|
--- nginx-1.21.4/contrib/vim/syntax/nginx.vim 2021-11-02 15:49:22.000000000 +0100
|
|
+++ new/contrib/vim/syntax/nginx.vim 2021-11-08 09:58:58.283999487 +0100
|
|
@@ -5,6 +5,10 @@
|
|
finish
|
|
end
|
|
|
|
+" Reset compatible-options to Vim default value, just in case:
|
|
+let s:save_cpo = &cpo
|
|
+set cpo&vim
|
|
+
|
|
" general syntax
|
|
|
|
if has("patch-7.4.1142")
|
|
@@ -2447,4 +2451,8 @@
|
|
hi def link ngxListenOptions Keyword
|
|
hi def link ngxListenOptionsDeprecated Error
|
|
|
|
+" Restore current compatible-options:
|
|
+let &cpo = s:save_cpo
|
|
+unlet s:save_cpo
|
|
+
|
|
let b:current_syntax = "nginx"
|