runtime: set 'cpoptions' for line-continuation in various runtime files
closes: #17121
Signed-off-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/runtime/syntax/asy.vim b/runtime/syntax/asy.vim
index ed2bf71..de17d92 100644
--- a/runtime/syntax/asy.vim
+++ b/runtime/syntax/asy.vim
@@ -3,6 +3,7 @@
" Maintainer: Avid Seeker <avidseeker7@protonmail.com>
" Andy Hammerlindl
" Last Change: 2022 Jan 05
+" 2025 Apr 16 by Vim Project (set 'cpoptions' for line continuation, #17121)
" Hacked together from Bram Moolenaar's C syntax file, and Claudio Fleiner's
" Java syntax file.
@@ -11,6 +12,9 @@
finish
endif
+let s:cpo_save = &cpo
+set cpo&vim
+
" useful C/C++/Java keywords
syn keyword asyStatement break return continue unravel
syn keyword asyConditional if else
@@ -241,3 +245,5 @@
hi def link asyPathSpec Statement
let b:current_syntax = "asy"
+let &cpo = s:cpo_save
+unlet s:cpo_save