mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user