Browse Source

feat(xtintin): 让 SmartToggle 支持 #debug 命令 on/off 的切换

dzp 1 year ago
parent
commit
4bd5f84dd3
1 changed files with 6 additions and 0 deletions
  1. 6 0
      plugins/lib/xtintin/cmds.tin

+ 6 - 0
plugins/lib/xtintin/cmds.tin

@@ -648,6 +648,12 @@ VAR {用 VAR 关键字定义的 PaoTin++ 变量清单,包含其中文含义} g
     #if { {$input} == {#line debug %*} } {
         #replace input {^#line debug } {};
     };
+    #elseif { {$input} == {{|#line quiet }#debug %S on} } {
+        #replace input {^{|#line quiet }#debug %S on$} {&1#debug &2 off};
+    };
+    #elseif { {$input} == {{|#line quiet }#debug %S off} } {
+        #replace input {^{|#line quiet }#debug %S off$} {&1#debug &2 on};
+    };
     #else {
         #local cmds {act(|i(|o(|n)))|ali(|a(|s))|tic(|k(|e(|r)))
                     |var(|i(|a(|b(|l(|e)))))