fix: stop scoping legacy special variables inside string literals #46

Merged
corneliusio merged 1 commit from fix/special-vars-in-strings into master 2026-08-21 16:09:42 +00:00
corneliusio commented 2026-08-15 07:22:01 +00:00 (Migrated from github.com)

Inside a JavaScript string, text like "$$props" is ordinary string content, not a reference to the legacy $$props variable. This removes the string-content override that stripped string scope from it. Bare identifiers keep their variable.language.dollar.js scope.

Addresses finding 6 of the syntax audit (legacy special variables incorrectly interpolated inside string literals).

Syntax tests updated and passing on ST builds 4143 and latest.

Inside a JavaScript string, text like `"$$props"` is ordinary string content, not a reference to the legacy `$$props` variable. This removes the `string-content` override that stripped string scope from it. Bare identifiers keep their `variable.language.dollar.js` scope. Addresses finding 6 of the syntax audit (legacy special variables incorrectly interpolated inside string literals). Syntax tests updated and passing on ST builds 4143 and latest.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
repos/svelte-sublime!46
No description provided.