mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -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:
parent
052b86ba63
commit
f9f4e27ad7
@ -1,11 +1,14 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: hyprlang
|
" Language: hyprlang
|
||||||
" Maintainer: Luca Saccarola <github.e41mv@aleeas.com>
|
" Maintainer: Luca Saccarola <github.e41mv@aleeas.com>
|
||||||
" Last Change: 2025 Jan 29
|
" Last Change: 2025 Mar 26
|
||||||
|
|
||||||
if exists("b:current_syntax")
|
if exists("b:current_syntax")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
let s:cpo= &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
let b:current_syntax = "hyprlang"
|
let b:current_syntax = "hyprlang"
|
||||||
|
|
||||||
syn case ignore
|
syn case ignore
|
||||||
@ -56,4 +59,6 @@ hi def link hyprString String
|
|||||||
hi def link hyprColor Structure
|
hi def link hyprColor Structure
|
||||||
hi def link hyprCommand Keyword
|
hi def link hyprCommand Keyword
|
||||||
|
|
||||||
|
let &cpo = s:cpo
|
||||||
|
unlet s:cpo
|
||||||
" vim: ts=8 sts=2 sw=2 et
|
" vim: ts=8 sts=2 sw=2 et
|
||||||
|
Loading…
x
Reference in New Issue
Block a user