From ba1a0f80ac972f71f59924191e3253544ab8a080 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Mon, 2 May 2022 12:24:26 +0800 Subject: [PATCH] feat(vimchat): update syntax highlight for message --- bundle/vim-chat/README.md | 4 ++-- bundle/vim-chat/syntax/vimchat.vim | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/bundle/vim-chat/README.md b/bundle/vim-chat/README.md index 8cf58a9c0..b686401e4 100644 --- a/bundle/vim-chat/README.md +++ b/bundle/vim-chat/README.md @@ -7,7 +7,7 @@ The chatting client for vim and neovim. This plugin is based on [SpaceVim](https - [Usage](#usage) -- [Feedback & Contribut](#feedback--contribut) +- [Feedback & Contribute](#feedback--contribute) @@ -34,6 +34,6 @@ and create your own key binding: nnoremap h :call chat#windows#open() ``` -## Feedback & Contribut +## Feedback & Contribute The development of vim-chat is in SpaceVim repository, including the SpaceVim api and [bundle/vim-chat](https://github.com/SpaceVim/SpaceVim/tree/master/bundle/vim-chat) diff --git a/bundle/vim-chat/syntax/vimchat.vim b/bundle/vim-chat/syntax/vimchat.vim index b6da8c89c..d2996ba28 100644 --- a/bundle/vim-chat/syntax/vimchat.vim +++ b/bundle/vim-chat/syntax/vimchat.vim @@ -9,7 +9,9 @@ syn match VimChatTime /\[\d\d\d\d-\d\d-\d\d\s\d\d\:\d\d]/ syn match VimChatVert /ā”‚/ syn match VimChatNick /\[\d\d\d\d-\d\d-\d\d\s\d\d\:\d\d]\sā”‚[^ā”‚]*ā”‚/ contains=VimChatTime,VimChatVert -syntax match VimChatRemoteNickL /**`/ conceal + +syntax match VimChatCodeBlock /`[^`]*`/ +syntax match VimChatRemoteNickL /\*\*`/ conceal syntax match VimChatRemoteNickR /`\*\*/ conceal syntax match VimChatRemoteNick /**`[^`]*`\*\*/ contains=VimChatRemoteNickR,VimChatRemoteNickL syntax match VimChatPing /\s\zs@\S*/ @@ -19,3 +21,4 @@ hi def link VimChatNick Type hi def link VimChatVert VertSplit hi def link VimChatRemoteNick Todo hi def link VimChatPing ModeMsg +hi def link VimChatCodeBlock String