mirror of
https://github.com/godotengine/godot-vscode-plugin.git
synced 2026-01-04 10:09:58 +03:00
fix syntax checing with inline condition expression fix #58
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user