Skip to content

Commit f9f4e27

Browse files
committed
runtime(hyprlang): save and restore cpo setting in syntax script
fixes: #16970 closes: #16973 Signed-off-by: Christian Brabandt <[email protected]>
1 parent 052b86b commit f9f4e27

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

runtime/syntax/hyprlang.vim

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
" Vim syntax file
22
" Language: hyprlang
33
" Maintainer: Luca Saccarola <[email protected]>
4-
" Last Change: 2025 Jan 29
4+
" Last Change: 2025 Mar 26
55

66
if exists("b:current_syntax")
77
finish
88
endif
9+
let s:cpo= &cpo
10+
set cpo&vim
11+
912
let b:current_syntax = "hyprlang"
1013

1114
syn case ignore
@@ -56,4 +59,6 @@ hi def link hyprString String
5659
hi def link hyprColor Structure
5760
hi def link hyprCommand Keyword
5861

62+
let &cpo = s:cpo
63+
unlet s:cpo
5964
" vim: ts=8 sts=2 sw=2 et

0 commit comments

Comments
 (0)