Update 2024-11-23 16:01 OpenBSD/amd64-t14
This commit is contained in:
@@ -6,12 +6,12 @@ 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'
|
||||
silent! 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
|
||||
syn region copilotPanelItem matchgroup=copilotSeparator start="^─\{9,}$" end="\%(^─\{9,\}$\)\@=\|\%$" keepend contains=@copilotLanguageTop
|
||||
|
||||
hi def link copilotHeader PreProc
|
||||
hi def link copilotSeparator Comment
|
||||
|
||||
25
.vim/pack/plugins/opt/vim-copilot/syntax/copilotlog.vim
Normal file
25
.vim/pack/plugins/opt/vim-copilot/syntax/copilotlog.vim
Normal file
@@ -0,0 +1,25 @@
|
||||
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 match copilotlogError '\[ERROR\]'
|
||||
syn match copilotlogWarn '\[WARN\]'
|
||||
syn match copilotlogInfo '\[INFO\]'
|
||||
syn match copilotlogDebug '\[DEBUG\]'
|
||||
syn match copilotlogTime '^\[\d\d\d\d-\d\d-\d\d.\d\d:\d\d:\d\d\]' nextgroup=copilotlogError,copilotlogWarn,copilotLogInfo,copilotLogDebug skipwhite
|
||||
|
||||
hi def link copilotlogTime NonText
|
||||
hi def link copilotlogError ErrorMsg
|
||||
hi def link copilotlogWarn WarningMsg
|
||||
hi def link copilotlogInfo MoreMsg
|
||||
hi def link copilotlogDebug ModeMsg
|
||||
|
||||
let b:current_syntax = "copilotlog"
|
||||
Reference in New Issue
Block a user