Update 2024-01-19 22:17 OpenBSD/amd64-x13
This commit is contained in:
19
.vim/pack/plugins/opt/vim-copilot/syntax/copilot.vim
Normal file
19
.vim/pack/plugins/opt/vim-copilot/syntax/copilot.vim
Normal file
@@ -0,0 +1,19 @@
|
||||
scriptencoding utf-8
|
||||
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
let s:subtype = matchstr(&l:filetype, '\<copilot\.\zs[[:alnum:]_-]\+')
|
||||
if !empty(s:subtype) && s:subtype !=# 'copilot'
|
||||
exe 'syn include @copilotLanguageTop syntax/' . s:subtype . '.vim'
|
||||
unlet! b:current_syntax
|
||||
endif
|
||||
|
||||
syn region copilotHeader start="\%^" end="^─\@="
|
||||
syn region copilotSolution matchgroup=copilotSeparator start="^─\{9,}$" end="\%(^─\{9,\}$\)\@=\|\%$" keepend contains=@copilotLanguageTop
|
||||
|
||||
hi def link copilotHeader PreProc
|
||||
hi def link copilotSeparator Comment
|
||||
|
||||
let b:current_syntax = "copilot"
|
||||
Reference in New Issue
Block a user