Эх сурвалжийг харах

Merge pull request #79 from AlienGamesLLC/master

single line if-else statement
Geequlim 7 жил өмнө
parent
commit
307e29a7ec

+ 1 - 1
src/gdscript/diagnostic.ts

@@ -112,7 +112,7 @@ class GDScriptDiagnosticSeverity {
           return
         if(line.match(new RegExp(`.*?#.*?\\s${keywords[1]}\\s.*?`)))
           return
-        if(line.match(/.*?\sif\s+(\!|\[|\{|\w).*?\s+else\s+[^\s]+/))
+        if(line.match(/.*?\sif\s+(\!|\[|\{|\w|").*?\s+else\s+[^\s]+/))
           return
         if (line.match(/.*?\\/))
           expectEndOfLine = true;