ソースを参照

single if-else statement

Akira Kido 7 年 前
コミット
492fe5663c
1 ファイル変更3 行追加0 行削除
  1. 3 0
      src/gdscript/diagnostic.ts

+ 3 - 0
src/gdscript/diagnostic.ts

@@ -114,6 +114,9 @@ class GDScriptDiagnosticSeverity {
           return
         if(line.match(/.*?\sif\s+(\!|\[|\{|\w).*?\s+else\s+[^\s]+/))
           return
+        if(line.match(/.*?if.*else.*/)) {
+          return
+        }
         if (line.match(/.*?\\/))
           expectEndOfLine = true;
         else if (line.match(/.*?\:[\s+]+[^#\s]+/))