Skip to content

VBA_LEX004 — Unterminated string or missing end bracket

Severity: 🔴 error Category: lexer Phase: 3.9

Description

A string literal has no closing ", or a bracket-quoted name […] has no closing ].

Failing example

s = "hello

Compliant example

s = "hello"

How to fix

Add the missing closing quote or ].


Source: src/rules.py — entry VBA_LEX004.