0
0
mirror of https://github.com/vim/vim.git synced 2025-07-25 10:54:51 -04:00

runtime(hyprlang): save and restore cpo setting in syntax script

fixes: #16970
closes: #16973

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt 2025-03-26 19:00:15 +01:00
parent 052b86ba63
commit f9f4e27ad7
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

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