From e4d3173dab00b9a4d9b0d2ff4c8eff518199ab97 Mon Sep 17 00:00:00 2001 From: A4-Tacks Date: Mon, 18 Dec 2023 12:53:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=95=B4=E4=BA=86=E4=B8=80=E4=B8=8B?= =?UTF-8?q?=E8=AF=AD=E6=B3=95=E9=AB=98=E4=BA=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- syntax/vim/mdtlbl.vim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/syntax/vim/mdtlbl.vim b/syntax/vim/mdtlbl.vim index 5732087..e4e8f9a 100644 --- a/syntax/vim/mdtlbl.vim +++ b/syntax/vim/mdtlbl.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: mindustry_logic_bang_lang (mdtlbl) " Maintainer: A4-Tacks -" Last Change: 2023-8-24 +" Last Change: 2023-12-18 " URL: https://github.com/A4-Tacks/mindustry_logic_bang_lang " 已加载高亮时就退出 @@ -43,7 +43,7 @@ syn match mdtlblCmpTreeOper /&&\|||\|!/ hi link mdtlblCmpTreeOper Operator " 注释 {{{1 -syn region mdtlblComment start=/#/ end=/$/ +syn region mdtlblComment start=/#/ end=/$/ oneline syn region mdtlblLongComment start=/#\*/ end=/\*#/ fold hi link mdtlblComment Comment hi link mdtlblLongComment Comment @@ -55,10 +55,10 @@ setlocal formatoptions+=rq " 值(Var) {{{1 syn match mdtlblSpecialChar /\\n/ contained -hi link mdtlblString String +hi link mdtlblSpecialChar SpecialChar syn region mdtlblString start=/"/ end=/"/ contains=mdtlblSpecialChar -hi link mdtlblSpecialChar SpecialChar +hi link mdtlblString String syn match mdtlblOIdent /@\I\i*\(-\i*\)*/ hi link mdtlblOIdent Identifier @@ -80,7 +80,7 @@ hi link mdtlblResultHandle Identifier " Label {{{1 -syn match mdtlblDefineResultHandle /\I\i*:/ +syn match mdtlblDefineResultHandle /\((\(\s\|\n\)*\)\@<=\I\i*:/ hi link mdtlblDefineResultHandle Identifier syn match mdtlblIdentLabel /:\I\i*/