From bbeacedeec995448db626f0c7a6725636b05c0a8 Mon Sep 17 00:00:00 2001 From: enigma Date: Fri, 20 Mar 2026 21:37:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AF=AD=E6=B3=95=E7=9D=80?= =?UTF-8?q?=E8=89=B2=E9=A2=9C=E8=89=B2=E5=AE=9A=E4=B9=89=EF=BC=8C=E7=A6=81?= =?UTF-8?q?=E7=94=A8=E8=87=AA=E5=8A=A8=E8=A1=A5=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 语法着色: 变量($xxx)、外部变量(@xxx)、常量(_xxx)、数字的颜色 - ControllerConfig: 禁用自动补全默认选项 --- src/EasyCon2/Config/ControllerConfig.cs | 2 +- src/EasyCon2/Resources/ecp.xshd | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/EasyCon2/Config/ControllerConfig.cs b/src/EasyCon2/Config/ControllerConfig.cs index 4cc5548..e08678c 100644 --- a/src/EasyCon2/Config/ControllerConfig.cs +++ b/src/EasyCon2/Config/ControllerConfig.cs @@ -11,7 +11,7 @@ public record ConfigState public string ChannelToken { get; set; } = string.Empty; public bool EnableAlertToken { get; set; } = false; public bool EnableChannelToken { get; set; } = false; - public bool EnableAutoCompletion { get; set; } = true; + public bool EnableAutoCompletion { get; set; } = false; public bool ChannelControl { get; set; } = false; diff --git a/src/EasyCon2/Resources/ecp.xshd b/src/EasyCon2/Resources/ecp.xshd index d50afa0..6ebb71e 100644 --- a/src/EasyCon2/Resources/ecp.xshd +++ b/src/EasyCon2/Resources/ecp.xshd @@ -2,10 +2,13 @@ xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008"> - + + + + @@ -27,6 +30,14 @@ " + + \$[\w]+ + \@[\w]+ + _[\w]+ + + + \b\d+(\.\d+)?([eE][+-]?\d+)? + IMPORT FOR