GDScript doesn't accept comments (GODOT 3.0 stable)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By GunPoint

Okay so i made some variables, added some comments but GDscript reads comments as normal lines of code. Example

var variable1; //this is a variable

I get this error:

Unexpected token “/”

(its the first time i use godot 3.0)

:bust_in_silhouette: Reply From: quijipixel

That’s because GDScript uses the # character for comments:

var variable1 # This is a variable

OHH yea… i totally forgot
I used GDScript in the past, but i just came back from C# and i totally forgot

GunPoint | 2018-02-04 17:32