mirror of
https://github.com/godotengine/godot-vscode-plugin.git
synced 2026-01-04 10:09:58 +03:00
Ignore keywords in comments (#23)
This commit is contained in:
@@ -105,6 +105,8 @@ class GDScriptDiagnosticSeverity {
|
||||
if (keywords) {
|
||||
if(line.match(new RegExp(`".*?\\s${keywords[1]}\\s.*?"`)) || line.match(new RegExp(`'.*?\\s${keywords[1]}\\s.*?\'`)))
|
||||
return
|
||||
if(line.match(new RegExp(`.*?#.*?\\s${keywords[1]}\\s.*?`)))
|
||||
return
|
||||
if(line.match(/.*?\sif\s+\w.*?\s+else\s+\w.*/))
|
||||
return
|
||||
if (line.match(/.*?\\/))
|
||||
|
||||
Reference in New Issue
Block a user