aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/hyprlang.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-03-28 07:21:52 +0800
committerzeertzjq <zeertzjq@outlook.com>2025-03-28 07:21:54 +0800
commitd96a685fae5035cb91aa2709f823740bfccb899e (patch)
tree99a9bec141da3cfd1eaa92361fac6f1bd6ab442a /runtime/syntax/hyprlang.vim
parent558de3d9adc3b2ea1403ef995ea46dfad6ca0bdd (diff)
downloadrneovim-d96a685fae5035cb91aa2709f823740bfccb899e.tar.gz
rneovim-d96a685fae5035cb91aa2709f823740bfccb899e.tar.bz2
rneovim-d96a685fae5035cb91aa2709f823740bfccb899e.zip
vim-patch:f9f4e27: runtime(hyprlang): save and restore cpo setting in syntax script
fixes: vim/vim#16970 closes: vim/vim#16973 https://github.com/vim/vim/commit/f9f4e27ad76ee36a5a49013a84a466800d26f360 Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/syntax/hyprlang.vim')
-rw-r--r--runtime/syntax/hyprlang.vim7
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/syntax/hyprlang.vim b/runtime/syntax/hyprlang.vim
index cde504d9ca..081d917b4c 100644
--- a/runtime/syntax/hyprlang.vim
+++ b/runtime/syntax/hyprlang.vim
@@ -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