Possibly grammar error with TemplateString #26

Closed
opened 2023-12-09 23:22:51 +01:00 by kdog3682 · 2 comments
kdog3682 commented 2023-12-09 23:22:51 +01:00 (Migrated from github.com)

const r = RegExp(`^-{${n},}$`, 'm')
does not get properly parsed.
I am using lezer 1.4.10.

`` const r = RegExp(`^-{${n},}$`, 'm') `` does not get properly parsed. I am using lezer 1.4.10.
marijnh commented 2023-12-10 15:08:33 +01:00 (Migrated from github.com)

Can you be more specific than 'does not get properly parsed'? The syntax tree I get for that looks fine.

Can you be more specific than 'does not get properly parsed'? The syntax tree I get for that looks fine.
kdog3682 commented 2024-02-23 23:40:29 +01:00 (Migrated from github.com)

You are right. I had preprocessed the string inadverdently.

You are right. I had preprocessed the string inadverdently.
Sign in to join this conversation.
No labels
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
lezer/javascript#26
No description provided.