Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Untitled Folder/syntax/copilotpanel.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
scriptencoding utf-8

if exists("b:current_syntax")
finish
endif

let s:subtype = matchstr(&l:filetype, '\<copilotpanel\.\zs[[:alnum:]_-]\+')
if !empty(s:subtype) && s:subtype !~# 'copilot'
silent! exe 'syn include @copilotpanelLanguageTop syntax/' . s:subtype . '.vim'
unlet! b:current_syntax
endif

syn region copilotpanelHeader start="\%^" end="^─\@="
syn region copilotpanelItem matchgroup=copilotpanelSeparator start="^─\{9,}$" end="\%(^─\{9,\}$\)\@=\|\%$" keepend contains=@copilotpanelLanguageTop

hi def link copilotpanelHeader PreProc
hi def link copilotpanelSeparator Comment

let b:current_syntax = "copilotpanel"