From fddab16aeef93f1aaa7488d7918cda24139ff49a Mon Sep 17 00:00:00 2001 From: A4-Tacks Date: Mon, 29 Apr 2024 15:57:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A8=8D=E5=BE=AE=E6=94=B9=E8=BF=9B=E5=85=B3?= =?UTF-8?q?=E4=BA=8E=E6=AF=94=E8=BE=83=E6=9D=A1=E4=BB=B6=E7=9A=84=E9=AB=98?= =?UTF-8?q?=E4=BA=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- syntax/MT-Manager/MindustryLogicBangLang.mtsx | 2 +- syntax/vim/mdtlbl.vim | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/syntax/MT-Manager/MindustryLogicBangLang.mtsx b/syntax/MT-Manager/MindustryLogicBangLang.mtsx index c624458..d2ad334 100644 --- a/syntax/MT-Manager/MindustryLogicBangLang.mtsx +++ b/syntax/MT-Manager/MindustryLogicBangLang.mtsx @@ -80,7 +80,7 @@ } { // operator match: keywordsToRegex( - "abs acos add and angle asin atan ceil" + "abs acos add always and angle asin atan ceil" "cos div equal floor greaterThan greaterThanEq" "idiv land len lessThan lessThanEq lnot log" "max min mod mul noise not notEqual or" diff --git a/syntax/vim/mdtlbl.vim b/syntax/vim/mdtlbl.vim index 915edea..e2209f8 100644 --- a/syntax/vim/mdtlbl.vim +++ b/syntax/vim/mdtlbl.vim @@ -33,12 +33,13 @@ syn keyword mdtlblKeyword syn keyword mdtlblOpFunKeyword \ add sub mul div idiv mod pow \ equal notEqual land lessThan lessThanEq greaterThan greaterThanEq - \ strictEqual strictNotEqual shl shr or and xor max + \ strictEqual strictNotEqual always _ + \ shl shr or and xor max \ min angle len noise not abs log \ floor ceil sqrt rand sin cos tan \ asin acos atan lnot -syn match mdtlblCmpTreeOper /&&\|||\|!/ +syn match mdtlblCmpTreeOper /&&\|||\|!\|=>/ syn match mdtlblArgsExpand /@/ " 注释 {{{1