"Unexpected Identifier in class body

Godot Version

I use Godot 4.3

Question

` I’m new to Godot and game dev in general but I’ve kept running into a problem with "Unexpected “Identifier” in class body.

The code looks like this.

extends CharacterBody2D-The line that has error.

export var speed = 200

func _physics_process(delta):
if Input.is_action_pressed(“ui_up”):
velocity.y -= 1
if Input.is_action_pressed(“ui_down”):
velocity.y += 1
if Input.is_action_pressed(“ui_left”):
velocity.x -= 1
if Input.is_action_pressed(“ui_right”):
velocity.x += 1

velocity = velocity.normalized() * speed

move_and_slide()

I’m not sure what the reasons are for it erroring at the first line. `

It should be @export var speed = 200 in Godot 4.