runtime: set 'cpoptions' for line-continuation in various runtime files
closes: #17121 Signed-off-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
470317f78b
commit
fbbaa6ebe9
@ -1,14 +1,18 @@
|
||||
" Vim syntax file
|
||||
" Language: Typst
|
||||
" Previous Maintainer: Gregory Anders
|
||||
" Maintainer: Luca Saccarola <github.e41mv@aleeas.com>
|
||||
" Previous Maintainer: Gregory Anders
|
||||
" Based On: https://github.com/kaarmu/typst.vim
|
||||
" Last Change: 2024 Dec 09
|
||||
" Based on: https://github.com/kaarmu/typst.vim
|
||||
" 2025 Apr 16 by Vim Project (set 'cpoptions' for line continuation, #17121)
|
||||
|
||||
if exists('b:current_syntax')
|
||||
finish
|
||||
endif
|
||||
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
syntax sync fromstart
|
||||
syntax spell toplevel
|
||||
|
||||
@ -470,4 +474,7 @@ highlight default typstMarkupBoldItalic term=bold,italic
|
||||
|
||||
let b:current_syntax = 'typst'
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
" }}}1
|
||||
|
||||
Reference in New Issue
Block a user