vim-patch:f9f4e27: runtime(hyprlang): save and restore cpo setting in syntax script

fixes: vim/vim#16970
closes: vim/vim#16973

f9f4e27ad7

Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2025-03-28 07:21:52 +08:00
parent 558de3d9ad
commit d96a685fae

View File

@ -1,11 +1,14 @@
" Vim syntax file
" Language: hyprlang
" Maintainer: Luca Saccarola <github.e41mv@aleeas.com>
" Last Change: 2025 Jan 29
" Last Change: 2025 Mar 26
if exists("b:current_syntax")
finish
endif
let s:cpo= &cpo
set cpo&vim
let b:current_syntax = "hyprlang"
syn case ignore
@ -56,4 +59,6 @@ hi def link hyprString String
hi def link hyprColor Structure
hi def link hyprCommand Keyword
let &cpo = s:cpo
unlet s:cpo
" vim: ts=8 sts=2 sw=2 et