Why not the internal script editor ? I find it a huge pro for Godot.
Guessing because no code, from afar it looks like there is a problem with indentation. GDscript, just like Python, depends on indentation. And use tabs for indentation. Maybe your editor is set to expand indentation to blanks and that irritates the parser, don't use blanks for indentation.